/* ========================================
   SOLARIS — Header (compact, strong)
   Logo + nav left, actions right
   ======================================== */

.site-header {
    position: fixed;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: var(--max-width);
    top: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0 0 16px 16px;
    background: transparent;
    transition:
        top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-radius 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.scrolled {
    top: 10px;
    background: var(--bg-card);
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}

/* Left group: logo + nav together */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo:hover .logo-text {
    filter: brightness(1.2);
}

/* Nav — inline with logo */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 0.25rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.nav-links a.nav-disabled {
    color: var(--text-secondary);
    opacity: 0.5;
    pointer-events: none;
}

.nav-links a:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.06);
    outline-color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .nav-links a:hover {
    background: rgba(0, 0, 0, 0.04);
    outline-color: rgba(0, 0, 0, 0.15);
}

/* Right side actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.nav-links a i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Header button overrides */
.btn-header-play {
    padding: 9px 22px !important;
    font-size: 0.85rem !important;
}

.btn-header-secondary {
    padding: 9px 22px !important;
    font-size: 0.85rem !important;
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-header-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 1rem;
    width: 34px;
    height: 34px;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    outline-color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    outline-color: rgba(0, 0, 0, 0.15);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1001;
    width: 36px;
    height: 36px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}
