.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    border-radius: 20px;
    margin-bottom: 32px;
    padding: 36px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header__nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.site-header__links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(226, 232, 240, 0.08);
    color: #cbd5f5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-header__link:hover {
    background: rgba(226, 232, 240, 0.2);
    border-color: rgba(226, 232, 240, 0.35);
    transform: translateY(-2px);
}

.site-header__link.active {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #60a5fa;
    font-weight: 600;
}

.site-header__hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
}

.site-header__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.45);
}

.site-header__wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    flex-wrap: nowrap;
    max-width: 100%;
}

.site-header__wordmark--mobile {
    display: none;
}

.site-header__wordmark-main {
    color: #ffffff;
    display: inline-block;
}

.site-header__tagline {
    color: rgba(226, 232, 240, 0.92);
    max-width: 640px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

/* Reduce spacing for player pages */
.site-header--player-page {
    padding: 24px 36px;
    margin-bottom: 12px;
}

.site-header--player-page .site-header__hero {
    gap: 8px;
}

/* Desktop: Show avatar and tagline on same row, centered */
@media (min-width: 769px) {
    .site-header--player-page .site-header__hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        position: relative;
    }
    
    /* Brand container on its own row */
    .site-header--player-page .site-header__brand--player-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-shrink: 0;
        margin: 0 auto;
        width: auto;
    }
    
    /* Player label container - centered below title */
    .site-header--player-page .site-header__player-label-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 4px;
        margin-bottom: 0;
    }
    
    
    /* Hide wordmark on desktop for player pages */
    .site-header--player-page .site-header__wordmark--desktop {
        display: none;
    }
    
    /* Show combined tagline "NBA Heave Report: [player name]" next to avatar */
    .site-header--player-page .site-header__tagline--player-name {
        font-size: 2rem;
        font-weight: 800;
        color: #ffffff;
        line-height: 1.2;
        margin: 0;
        display: inline-block;
        white-space: nowrap;
    }
}

/* Hide player subtext on desktop */
.site-header--player-page .site-header__subtext--player-mobile {
    display: none !important;
}

/* Desktop: Show avatar + "NBA Heave Report: [player name]" */
@media (min-width: 769px) {
    .site-header--player-page .site-header__brand--player-desktop .site-header__avatar {
        display: block; /* Show avatar on desktop */
    }
}

/* Mobile: Show "NBA Heave Report" wordmark + avatar, with player name as subtext */
@media (max-width: 768px) {
    /* Hide desktop brand container on mobile */
    .site-header--player-page .site-header__brand--player-desktop {
        display: none !important;
    }
    
    /* Show mobile brand container with avatar and wordmark */
    .site-header--player-page .site-header__brand--player-mobile {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
    }
    
    .site-header--player-page .site-header__wordmark--mobile {
        display: inline-flex !important; /* Show wordmark on mobile */
    }
    
    /* Hide the combined tagline on mobile */
    .site-header--player-page .site-header__tagline--player-name {
        display: none !important;
    }
    
    /* Hide player name as subtext on mobile for player pages */
    .site-header--player-page .site-header__subtext--player-mobile {
        display: none !important;
        font-size: 1.1rem;
        font-weight: 600;
        color: rgba(226, 232, 240, 0.95);
        margin-top: 4px;
        margin-bottom: 0;
    }
}

.site-header__subtext {
    max-width: 640px;
    margin: 0;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.78);
}

.site-header__badges {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.site-header__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-header__badge--beta {
    background: #ff6b35;
    color: #ffffff;
}

.site-header__player-label-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.site-header__badge--player-label {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85em;
}

.site-header__badge--consulting {
    background: rgba(226, 232, 240, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-header__badge--consulting:hover {
    background: rgba(226, 232, 240, 0.25);
    border-color: rgba(226, 232, 240, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

.site-header__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-header__label--mobile {
    display: none;
}

.site-header__label--desktop {
    display: inline-flex;
}

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

    .site-header__link {
        padding: 6px 14px;
        font-size: 13px;
    }

    .site-header__tagline {
        font-size: 0.95rem;
    }

    .site-header__subtext {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .site-header__tagline {
        white-space: nowrap;
    }
    
    .site-header__brand {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
    }
    
    .site-header__avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .site-header__wordmark--desktop {
        display: none;
    }
    
    .site-header__wordmark--mobile {
        display: inline-flex;
        font-size: clamp(1.3rem, 5vw, 1.6rem);
        letter-spacing: 0.1px;
        white-space: nowrap;
        gap: 5px;
        flex-shrink: 1;
        min-width: 0;
    }

    /* Show mobile labels, hide desktop labels on mobile */
    .site-header__label--mobile {
        display: inline-flex;
    }

    .site-header__label--desktop {
        display: none;
    }

    .site-header__link--desktop-only {
        display: none !important;
    }
    
    .site-header__links {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .site-header__link {
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .site-header__hero {
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .site-header__badges {
        display: none;
    }
}

.site-header__badge--hidden {
    display: none !important;
}

