/* ══════════════════════════════════════════
   NAVBAR / HEADER STYLES
   ══════════════════════════════════════════ */

.site-header {
    background: rgba(4,8,15,.78);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background 0.3s, border-color 0.3s;
}

.search-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    color: #f1f5f9;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-box::placeholder { color: rgba(255,255,255,.28); }
.search-box:focus {
    border-color: rgba(20,184,166,.55);
    box-shadow: 0 0 0 3px rgba(20,184,166,.14);
    background: rgba(20,184,166,.06);
    outline: none;
}

.nav-link {
    position: relative;
    color: rgba(255,255,255,.5);
    transition: color .16s ease;
    font-weight: 700;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -.25rem; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform .22s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover { color: #5eead4; }
.nav-link:hover::after { transform: scaleX(1); }

.user-pill {
    background: rgba(15,118,110,.15);
    border: 1px solid rgba(20,184,166,.28);
    color: #5eead4;
    font-weight: 800;
    font-size: .82rem;
    border-radius: 99px;
    padding: .4rem 1rem;
    transition: box-shadow .16s ease, transform .16s ease;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.55);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .14s ease;
    flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; transform: rotate(15deg); }

.ham-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.65);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
}
.ham-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.mob-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 39;
    padding: 4.5rem 1.25rem 1.5rem;
    background: rgba(4,8,15,.95);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-direction: column;
    gap: .25rem;
}
.mob-nav.open { display: flex; animation: fade-down-nav .3s cubic-bezier(.16,1,.3,1) both; }

@keyframes fade-down-nav {
    from { opacity:0; transform:translateY(-16px); }
    to   { opacity:1; transform:none; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .ham-btn { display: flex; }
}

/* ── Light Mode Fixes ── */
html[data-theme="light"] .site-header { background: rgba(238,240,235,.88); border-color: rgba(0,0,0,.07); }
html[data-theme="light"] .search-box { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.1); color: #111827; }
html[data-theme="light"] .search-box::placeholder { color: rgba(0,0,0,.3); }
html[data-theme="light"] .nav-link { color: rgba(0,0,0,.52); }
html[data-theme="light"] .nav-link:hover { color: #0f766e; }
html[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,.1); background: rgba(255,255,255,.6); color: rgba(0,0,0,.5); }
html[data-theme="light"] .ham-btn { border-color: rgba(0,0,0,.1); background: rgba(255,255,255,.6); color: rgba(0,0,0,.55); }
html[data-theme="light"] .mob-nav { background: rgba(238,240,235,.97); border-color: rgba(0,0,0,.07); }
html[data-theme="light"] .mob-nav a { color: rgba(0,0,0,.55); }
html[data-theme="light"] .user-pill { background: rgba(15,118,110,.1); border-color: rgba(15,118,110,.22); color: #0f766e; }
