/* ===== Site Header Component ===== */
#site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle, rgba(136, 146, 176, 0.15));
    padding: 1rem 2rem;
}
#site-header .nav-content {
    max-width: var(--max-width, 1200px); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
#site-header .logo {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; color: var(--text-primary, #f0f4ff);
    font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 1.25rem;
}
#site-header .logo:hover { text-decoration: none; }
#site-header .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--coral-bright, #ff4d4d), var(--coral-mid, #e63946));
    border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700;
    color: #fff;
}
#site-header .nav-links {
    display: flex; align-items: center; gap: 1.5rem; list-style: none;
    margin: 0; padding: 0;
}
#site-header .nav-links > li { position: relative; }
#site-header .nav-links a {
    color: var(--text-secondary, #8892b0); text-decoration: none; font-size: 0.9rem;
    transition: color 0.2s;
}
#site-header .nav-links a:hover { color: var(--text-primary, #f0f4ff); }
#site-header .nav-links a.active { color: var(--coral-bright, #ff4d4d); }

/* Hamburger */
#site-header .hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 4px; flex-direction: column; gap: 5px;
}
#site-header .hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary, #f0f4ff); border-radius: 2px;
    transition: all 0.3s;
}

/* Mega Menu */
#site-header .nav-item { position: relative; }
#site-header .nav-item > a { cursor: pointer; }
#site-header .nav-item > a .arrow {
    display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 4px solid currentColor; transition: transform 0.2s;
}
#site-header .nav-item:hover > a .arrow,
#site-header .nav-item.active > a .arrow { transform: rotate(180deg); }
#site-header .mega-menu {
    position: fixed; left: 0; right: 0; top: 60px;
    background: var(--bg-elevated, #111827);
    border-bottom: 1px solid var(--border-subtle, rgba(136, 146, 176, 0.15));
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.25s ease; z-index: 99;
    max-height: 50vh; overflow-y: auto;
    pointer-events: none;
}
#site-header .nav-item:hover .mega-menu,
#site-header .nav-item:focus-within .mega-menu,
#site-header .nav-item.active .mega-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
    pointer-events: auto;
}
#site-header .nav-item::after {
    content: ''; position: absolute; left: 0; right: 0;
    top: 100%; height: 12px;
}
#site-header .mega-inner {
    max-width: var(--max-width, 1200px); margin: 0 auto;
    padding: 2rem; display: flex; gap: 2.5rem;
}
#site-header .mega-col { flex: 1; min-width: 0; }
#site-header .mega-col h4 {
    font-family: 'Clash Display', sans-serif; font-size: 0.8rem;
    font-weight: 600; color: var(--coral-bright, #ff4d4d); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 0.75rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle, rgba(136, 146, 176, 0.15));
}
#site-header .mega-col ul { list-style: none; margin: 0; padding: 0; }
#site-header .mega-col li { margin: 0; }
#site-header .mega-col a {
    display: block; padding: 0.4rem 0; color: var(--text-secondary, #8892b0);
    text-decoration: none; font-size: 0.85rem; transition: all 0.15s;
}
#site-header .mega-col a:hover { color: var(--cyan-bright, #00e5cc); padding-left: 4px; }
#site-header .mega-col a .mega-meta {
    font-size: 0.7rem; color: var(--text-muted, #5a6480); margin-left: 0.4rem;
}
#site-header .mega-featured {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
#site-header .mega-featured ul { display: contents; list-style: none; }
#site-header .mega-featured li { display: contents; }
#site-header .mega-skill {
    display: block; padding: 0.75rem; background: var(--bg-surface, #0a0f1a);
    border: 1px solid var(--border-subtle, rgba(136, 146, 176, 0.15)); border-radius: 6px;
    text-decoration: none; transition: all 0.2s;
}
#site-header .mega-skill:hover { border-color: var(--coral-bright, #ff4d4d); transform: translateY(-1px); }
#site-header .mega-skill .ms-name {
    font-family: 'Clash Display', sans-serif; font-size: 0.85rem;
    font-weight: 600; color: var(--text-primary, #f0f4ff); margin-bottom: 0.2rem;
}
#site-header .mega-skill .ms-desc {
    font-size: 0.75rem; color: var(--text-muted, #5a6480); line-height: 1.4;
}
#site-header .mega-skill .ms-dl {
    font-size: 0.7rem; color: var(--cyan-bright, #00e5cc); margin-top: 0.3rem;
}
#site-header .mega-viewall {
    display: inline-block; margin-top: 1rem; font-size: 0.85rem;
    color: var(--coral-bright, #ff4d4d); text-decoration: none; font-weight: 600;
}
#site-header .mega-viewall:hover { color: var(--cyan-bright, #00e5cc); }

/* Mobile */
@media (max-width: 768px) {
    #site-header .hamburger { display: flex; }
    #site-header .nav-links { display: none; }
    #site-header .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-elevated, #111827);
        padding: 1rem 2rem; gap: 0.5rem;
        border-bottom: 1px solid var(--border-subtle, rgba(136, 146, 176, 0.15));
    }
    #site-header .mega-menu { display: none; }
}
