*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #030712;
    min-height: 100vh;
}

/* ===== Container ===== */

.container
{
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Site Header ===== */

.site-header
{
    background: #111827;
    border-bottom: 1px solid #1f2937;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo
{
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon
{
    font-size: 40px;
    background: #0ea5e9;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1
{
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-text p
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.logo-text a
{
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.logo-text a:hover
{
    color: #38bdf8;
    text-decoration: underline;
}

/* ===== Main Navigation ===== */

.main-nav
{
    display: flex;
    gap: 10px;
}

.nav-tab
{
    padding: 12px 24px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-tab:hover
{
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.nav-tab.active
{
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

a.nav-tab.vault-link
{
    text-decoration: none;
}

/* ===== Main Content ===== */

.main-content
{
    flex: 1;
    padding: 40px;
}

.view
{
    display: none;
}

.view.active
{
    display: block;
}

/* ===== Blog View ===== */

.blog-header
{
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h2
{
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.blog-header p
{
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.blog-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* ===== Blog Card ===== */

.blog-card
{
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1f2937;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover
{
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

.blog-card-image
{
    height: 180px;
    background: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.blog-card-content
{
    padding: 25px;
}

.blog-card-meta
{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.blog-card-date
{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-card-tag
{
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card h3
{
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ===== Commands View ===== */

.commands-header
{
    text-align: center;
    margin-bottom: 30px;
}

.commands-header h2
{
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.commands-header p
{
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.commands-nav
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #111827;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #1f2937;
}

.cmd-tab
{
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cmd-tab:hover
{
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.5);
    color: #fff;
}

.cmd-tab.active
{
    background: #0ea5e9;
    color: white;
    border-color: transparent;
}

#commands-container
{
    background: #111827;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #1f2937;
}

/* ===== Command Grid & Sections ===== */

.grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== Home Page for Commands ===== */

.home-page
{
    display: block;
}

.home-page.hidden
{
    display: none;
}

.home-hero
{
    text-align: center;
    margin-bottom: 30px;
}

.home-hero h2
{
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.home-hero p
{
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.home-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.home-card
{
    display: flex;
    align-items: center;
    gap: 14px;
    background: #111827;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #1f2937;
}

.home-card:hover
{
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.home-card-icon
{
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.home-card h4
{
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.home-card p
{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ===== Command Sections ===== */

.section
{
    background: #111827;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #1f2937;
}

.section.hidden
{
    display: none;
}

.hidden
{
    display: none;
}

.section-header
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3
{
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* ===== Section Icons ===== */

.section-icon
{
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.files { background: #ffd93d; }
.operations { background: #6bcf7f; }
.permissions { background: #ff8c42; }
.disk { background: #4a90e2; }
.process { background: #38bdf8; }
.network { background: #06b6d4; }
.shortcuts { background: #ef4444; }
.interview { background: #fbbf24; }
.archive { background: #8b5cf6; }
.ssh { background: #10b981; }
.recon { background: #ec4899; }
.scanning { background: #f59e0b; }
.exploitation { background: #dc2626; }
.privesc { background: #7c3aed; }
.webexp { background: #06b6d4; }
.password { background: #84cc16; }
.forensics { background: #6366f1; }
.stealth { background: #64748b; }

/* ===== Command List ===== */

.command-list
{
    list-style: none;
}

.command-item
{
    display: flex;
    padding: 16px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
    gap: 20px;
}

.command-item:last-child
{
    border-bottom: none;
}

.cmd
{
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0ea5e9;
    width: 180px;
    flex-shrink: 0;
}

.desc
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    width: 150px;
    flex-shrink: 0;
}

.example
{
    display: block;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 12px;
    color: #d4d4d4;
    background: #0d0d0d;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Single Blog Post View ===== */

.back-btn
{
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 30px;
    font-family: inherit;
}

.back-btn:hover
{
    background: rgba(255, 255, 255, 0.2);
}

.blog-post-full
{
    background: #111827;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #1f2937;
}

.blog-post-full .post-header
{
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-full .post-meta
{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-post-full .post-date
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-post-full .post-tag
{
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border-radius: 20px;
    font-weight: 600;
}

.blog-post-full h1
{
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.blog-post-full .post-body
{
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 16px;
}

.blog-post-full .post-body h2
{
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 30px 0 15px;
}

.blog-post-full .post-body h3
{
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 25px 0 12px;
}

.blog-post-full .post-body p
{
    margin-bottom: 18px;
}

.blog-post-full .post-body code
{
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #0ea5e9;
}

.blog-post-full .post-body pre
{
    background: #0d0d0d;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-full .post-body pre code
{
    background: none;
    padding: 0;
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.6;
}

.blog-post-full .post-body ul,
.blog-post-full .post-body ol
{
    margin: 15px 0 15px 25px;
}

.blog-post-full .post-body li
{
    margin-bottom: 8px;
}

.blog-post-full .post-body blockquote
{
    border-left: 4px solid #0ea5e9;
    padding-left: 20px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.blog-post-full .post-body a
{
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-post-full .post-body a:hover
{
    color: #38bdf8;
    text-decoration: underline;
}

/* ===== Portfolio View ===== */

.portfolio-hero
{
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-hero h2
{
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.portfolio-tagline
{
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.portfolio-links
{
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.portfolio-link-btn
{
    padding: 10px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-link-btn:hover
{
    background: #0ea5e9;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.portfolio-sections
{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.portfolio-card
{
    background: #111827;
    border-radius: 16px;
    border: 1px solid #1f2937;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover
{
    border-color: rgba(14, 165, 233, 0.3);
}

.portfolio-card-header
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: #0f172a;
    border-bottom: 1px solid #1f2937;
}

.portfolio-card-header h3
{
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.portfolio-card-body
{
    padding: 25px;
}

.portfolio-item
{
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-item:first-child
{
    padding-top: 0;
}

.portfolio-item:last-child
{
    border-bottom: none;
    padding-bottom: 0;
}

.portfolio-item-header
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 15px;
    flex-wrap: wrap;
}

.portfolio-item-header strong
{
    font-size: 16px;
    color: #fff;
}

.portfolio-item-date
{
    font-size: 13px;
    color: #0ea5e9;
    font-weight: 600;
    white-space: nowrap;
}

.portfolio-item p
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    line-height: 1.5;
}

.portfolio-item-sub
{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.portfolio-item ul
{
    margin: 10px 0 0 20px;
    list-style: disc;
}

.portfolio-item li
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    line-height: 1.5;
}

.portfolio-item li strong
{
    color: #fff;
    font-size: 14px;
}

.portfolio-skills-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.portfolio-skill-group h4
{
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.portfolio-tags
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag
{
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.2s ease;
}

.portfolio-tag:hover
{
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.4);
}

/* Portfolio Light Mode */

body.light-mode .portfolio-hero h2
{
    color: #0f172a;
}

body.light-mode .portfolio-tagline
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .portfolio-link-btn
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .portfolio-link-btn:hover
{
    background: #0ea5e9;
    color: #fff;
}

body.light-mode .portfolio-card
{
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .portfolio-card-header
{
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .portfolio-card-header h3
{
    color: #0f172a;
}

body.light-mode .portfolio-item
{
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .portfolio-item-header strong
{
    color: #0f172a;
}

body.light-mode .portfolio-item p
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .portfolio-item-sub
{
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .portfolio-item li
{
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .portfolio-item li strong
{
    color: #0f172a;
}

body.light-mode .portfolio-skill-group h4
{
    color: #0f172a;
}

body.light-mode .portfolio-tag
{
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

/* ===== Footer ===== */

.site-footer
{
    background: #111827;
    border-top: 1px solid #1f2937;
    padding: 20px 40px;
    text-align: center;
}

.footer-icons
{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-icon
{
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon:hover
{
    color: #0ea5e9;
    transform: translateY(-2px);
}

body.light-mode .footer-icon
{
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .footer-icon:hover
{
    color: #0ea5e9;
}

/* ===== Theme Toggle ===== */

.theme-toggle
{
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover
{
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-icon
{
    font-size: 24px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon
{
    transform: rotate(20deg);
}

/* ===== Light Mode ===== */

body.light-mode
{
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

body.light-mode .site-header
{
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .logo-text h1
{
    color: #0f172a;
}

body.light-mode .logo-text p
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .nav-tab
{
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .nav-tab:hover
{
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .nav-tab.active
{
    background: #0ea5e9;
    color: #fff;
}

body.light-mode .blog-header h2,
body.light-mode .commands-header h2
{
    color: #0f172a;
}

body.light-mode .blog-header p,
body.light-mode .commands-header p
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .blog-card,
body.light-mode .section,
body.light-mode #commands-container,
body.light-mode .commands-nav
{
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .blog-card h3,
body.light-mode .section-header h3,
body.light-mode .home-hero h2,
body.light-mode .home-card h4
{
    color: #0f172a;
}

body.light-mode .blog-card p,
body.light-mode .home-hero p,
body.light-mode .home-card p
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .cmd-tab
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .cmd-tab:hover
{
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .home-card
{
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .home-card:hover
{
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .desc
{
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .example
{
    background: #2d2d2d;
}

body.light-mode .command-item
{
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .site-footer
{
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .theme-toggle
{
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .blog-post-full
{
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .blog-post-full h1,
body.light-mode .blog-post-full .post-body h2,
body.light-mode .blog-post-full .post-body h3
{
    color: #0f172a;
}

body.light-mode .blog-post-full .post-body
{
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .back-btn
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .back-btn:hover
{
    background: rgba(0, 0, 0, 0.1);
}

/* ===== Search Styles ===== */

.commands-toolbar
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-container
{
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input
{
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input::placeholder
{
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus
{
    outline: none;
    border-color: #0ea5e9;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.search-icon
{
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

body.light-mode .search-input
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .search-input::placeholder
{
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .search-input:focus
{
    background: rgba(255, 255, 255, 0.8);
}

.search-results
{
    background: #111827;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #1f2937;
}

.search-results.hidden
{
    display: none;
}

.search-results-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#search-results-count
{
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.clear-search-btn
{
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.clear-search-btn:hover
{
    background: rgba(255, 255, 255, 0.2);
}

.search-result-item
{
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover
{
    background: rgba(255, 255, 255, 0.08);
}

.search-result-category
{
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.search-result-cmd
{
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #0ea5e9;
    font-weight: 600;
    min-width: 150px;
}

.search-result-desc
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

body.light-mode .search-results
{
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode #search-results-count
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .clear-search-btn
{
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .search-result-item
{
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .search-result-item:hover
{
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .search-result-desc
{
    color: rgba(0, 0, 0, 0.7);
}

/* ===== Copy Button ===== */

.example-wrapper
{
    position: relative;
    flex: 1;
    min-width: 0;
}

.copy-btn
{
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    opacity: 0;
}

.example-wrapper:hover .copy-btn
{
    opacity: 1;
}

.copy-btn:hover
{
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.copy-btn.copied
{
    background: #10b981;
    color: #fff;
}

/* ===== New Post Button ===== */

.new-post-btn
{
    margin-top: 20px;
    padding: 12px 24px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.new-post-btn:hover
{
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

.new-post-btn.hidden
{
    display: none;
}

@keyframes fadeIn
{
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.light-mode .new-post-btn
{
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .new-post-btn:hover
{
    border-color: #0ea5e9;
    color: #0ea5e9;
}

/* ===== Blog Editor Modal ===== */

.editor-modal
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.editor-modal.hidden
{
    display: none;
}

.editor-container
{
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.editor-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-header h2
{
    color: #fff;
    font-size: 22px;
    margin: 0;
}

.editor-close
{
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.editor-close:hover
{
    color: #fff;
}

.editor-form
{
    padding: 30px;
}

.editor-row
{
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.editor-field
{
    flex: 1;
    margin-bottom: 20px;
}

.editor-field.small
{
    flex: 0 0 120px;
}

/* Emoji Picker */

.emoji-picker
{
    position: relative;
    display: flex;
    gap: 0;
}

.emoji-picker input
{
    flex: 1;
    border-radius: 10px 0 0 10px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
}

.emoji-btn
{
    padding: 12px 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-btn:hover
{
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.emoji-dropdown
{
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 10px;
    background: rgba(30, 30, 50, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 200px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-dropdown.hidden
{
    display: none;
}

.emoji-option
{
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-option:hover
{
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.2);
}

body.light-mode .emoji-btn
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .emoji-btn:hover
{
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .emoji-dropdown
{
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .emoji-option:hover
{
    background: rgba(0, 0, 0, 0.1);
}

.editor-field label
{
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-field input,
.editor-field select
{
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.editor-field input:focus,
.editor-field select:focus
{
    outline: none;
    border-color: #0ea5e9;
    background: rgba(255, 255, 255, 0.08);
}

.editor-field input::placeholder
{
    color: rgba(255, 255, 255, 0.4);
}

.editor-field select option
{
    background: #0f172a;
    color: #fff;
}

.editor-toolbar
{
    display: flex;
    gap: 6px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}

.editor-tool
{
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editor-tool:hover
{
    background: rgba(255, 255, 255, 0.15);
    border-color: #0ea5e9;
    color: #fff;
}

#post-content-editor
{
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 15px;
    font-family: 'Monaco', 'Menlo', monospace;
    line-height: 1.6;
    resize: vertical;
}

#post-content-editor:focus
{
    outline: none;
    border-color: #0ea5e9;
}

#post-content-editor::placeholder
{
    color: rgba(255, 255, 255, 0.4);
}

.editor-actions
{
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.editor-preview-btn,
.editor-generate-btn
{
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.editor-preview-btn
{
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.editor-preview-btn:hover
{
    background: rgba(255, 255, 255, 0.2);
}

.editor-generate-btn
{
    background: #0ea5e9;
    color: #fff;
}

.editor-generate-btn:hover
{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Editor Preview Panel */

.editor-preview,
.editor-output
{
    padding: 30px;
}

.preview-header,
.output-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.preview-header h3,
.output-header h3
{
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.preview-close,
.output-close
{
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.preview-close:hover,
.output-close:hover
{
    background: rgba(255, 255, 255, 0.1);
}

.preview-content
{
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

/* Editor Output Panel */

.output-instructions
{
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.output-instructions p
{
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
}

.output-section
{
    margin-bottom: 25px;
}

.output-label
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.output-label span
{
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.output-label code
{
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.copy-output-btn
{
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.copy-output-btn:hover
{
    background: rgba(255, 255, 255, 0.2);
}

.copy-output-btn.copied
{
    background: #10b981;
}

.output-code
{
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Light mode editor styles */

body.light-mode .editor-container
{
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

body.light-mode .editor-header
{
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .editor-header h2,
body.light-mode .preview-header h3,
body.light-mode .output-header h3
{
    color: #0f172a;
}

body.light-mode .editor-close
{
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .editor-close:hover
{
    color: #0f172a;
}

body.light-mode .editor-field label
{
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .editor-field input,
body.light-mode .editor-field select
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .editor-field input::placeholder
{
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .editor-field select option
{
    background: #fff;
    color: #0f172a;
}

body.light-mode .editor-toolbar
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .editor-tool
{
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .editor-tool:hover
{
    background: rgba(255, 255, 255, 1);
    color: #0ea5e9;
}

body.light-mode #post-content-editor
{
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode #post-content-editor::placeholder
{
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .editor-preview-btn
{
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .editor-preview-btn:hover
{
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .preview-close,
body.light-mode .output-close
{
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .preview-close:hover,
body.light-mode .output-close:hover
{
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .preview-content
{
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .output-label span
{
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .copy-output-btn
{
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .copy-output-btn:hover
{
    background: rgba(0, 0, 0, 0.15);
}

body.light-mode .output-code
{
    background: #2d2d2d;
}

/* ===== Responsive ===== */

@media (max-width: 768px)
{
    .site-header
    {
        padding: 15px 20px;
    }

    .header-content
    {
        flex-direction: column;
        text-align: center;
    }

    .logo
    {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text h1
    {
        font-size: 24px;
    }

    .main-content
    {
        padding: 20px;
    }

    .blog-grid
    {
        grid-template-columns: 1fr;
    }

    .blog-header h2
    {
        font-size: 28px;
    }

    .commands-nav
    {
        padding: 15px;
        gap: 6px;
    }

    .cmd-tab
    {
        padding: 6px 12px;
        font-size: 12px;
    }

    #commands-container
    {
        padding: 20px;
    }

    .grid
    {
        grid-template-columns: 1fr;
    }

    .command-item
    {
        flex-direction: column;
        gap: 6px;
    }

    .cmd,
    .desc
    {
        width: auto;
    }

    .example
    {
        width: 100%;
    }

    .home-grid
    {
        grid-template-columns: 1fr;
    }

    .home-hero h2
    {
        font-size: 24px;
    }

    .blog-post-full
    {
        padding: 25px;
    }

    .blog-post-full h1
    {
        font-size: 28px;
    }

    .portfolio-hero h2
    {
        font-size: 28px;
    }

    .portfolio-skills-grid
    {
        grid-template-columns: 1fr;
    }

    .portfolio-item-header
    {
        flex-direction: column;
        gap: 4px;
    }

    .portfolio-card-body
    {
        padding: 20px;
    }
}
