/* ==========================================================================
   Shared site header - used by ALL sections of beingsecretsanta.com
   (PollBaazi, Streax, Traitors, Collabs, Sinking Ship).
   Served globally from /site-nav.css.
   The active section button is vibrant and glowing; other 4 are grayscaled & blurred.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&display=swap');

/* The header spans the full browser width on every page */
html { overflow-x: hidden; overflow-x: clip; }
body:has(> header.site-header) { padding-top: 0; }

header.site-header {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    left: 50%;
    width: 100vw;
    margin: 0 0 24px -50vw;
    padding: 26px 15px 20px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 0%, hsl(145, 30%, 12%) 0%, hsl(145, 25%, 6%) 85%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

header.site-header .site-logo {
    all: unset;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.3;
    background: linear-gradient(135deg, #FFE082 0%, #FFB300 50%, #FF8F00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}
header.site-header .site-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 16px rgba(255, 179, 0, 0.45));
}

header.site-header .site-nav {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Base button styling - INACTIVE buttons are GRAYSCALED and BLURRED by default */
header.site-header .site-nav-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #fff;
    white-space: nowrap;
    opacity: 0.45;
    filter: grayscale(100%) blur(1px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
    --glow: rgba(255, 255, 255, 0.25);
}

/* On hover, reveal color smoothly for preview */
header.site-header .site-nav-btn:hover:not(.active) {
    transform: translateY(-2px);
    opacity: 0.85;
    filter: grayscale(20%) blur(0px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px var(--glow);
}

/* Vibrant Individual Section Color Palettes */
header.site-header .nav-pollbaazi { 
    background: linear-gradient(135deg, #7c4dff, #651fff); 
    --glow: rgba(124, 77, 255, 0.85); 
}
header.site-header .nav-streax { 
    background: linear-gradient(135deg, #ff5722, #ff3366); 
    --glow: rgba(255, 87, 34, 0.9); 
}
header.site-header .nav-traitors { 
    background: linear-gradient(135deg, #c2185b, #7b1fa2); 
    --glow: rgba(194, 24, 91, 0.9); 
}
header.site-header .nav-collabs { 
    background: linear-gradient(135deg, #0288d1, #0d47a1); 
    --glow: rgba(2, 136, 209, 0.9); 
}
header.site-header .nav-sinking { 
    background: linear-gradient(135deg, #00bfa5, #00695c); 
    --glow: rgba(0, 191, 165, 0.9); 
}

/* ACTIVE SECTION: Highlighted with vibrant color, prominent glow, sharp text and white border */
header.site-header .site-nav-btn.active {
    opacity: 1 !important;
    filter: grayscale(0%) blur(0px) brightness(1.15) saturate(1.3) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 6px 26px var(--glow), inset 0 0 10px rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) scale(1.05);
    font-weight: 800;
}

@media (max-width: 600px) {
    header.site-header { padding: 20px 10px 16px; margin-bottom: 16px; }
    header.site-header .site-logo { font-size: 1.5rem; }
    header.site-header .site-nav { gap: 8px; }
    header.site-header .site-nav-btn { font-size: 0.8rem; padding: 5px 12px; }
}

/* Traitors has its own dark title banner directly under the header: no gap */
body:has(> header.site-header + header.main-header) > header.site-header { margin-bottom: 0; }
