/* ══════════════════════════════════════════════
   Header — Modern Minimal, Theme-Native
   ══════════════════════════════════════════════ */

.site-header {
    background: var(--t-header-bg, rgba(10, 10, 18, 0.7));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--t-header-border, rgba(255, 255, 255, 0.06));
    position: sticky;
    top: 0;
    z-index: 50;
}

@supports not (backdrop-filter: blur(20px)) {
    .site-header {
        background: var(--t-header-bg, rgba(10, 10, 18, 0.95));
    }
}

.header__inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header__inner {
        padding: 0 1.5rem;
        height: 4rem;
    }
}

/* ── Brand ── */
.header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    text-decoration: none;
}

.header__logo {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--t-accent, #ef4444);
    transition: opacity 0.3s, filter 0.3s;
}

@media (min-width: 768px) {
    .header__logo {
        width: 2.75rem;
        height: 2.75rem;
    }
}

.header__brand:hover .header__logo {
    opacity: 1;
    filter: drop-shadow(0 0 8px currentColor);
}

.header__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    overflow: visible;
    transform: translateY(4px);
}

@media (min-width: 768px) {
    .header__logo-emoji {
        font-size: 1.4rem;
    }
}

.header__text {
    display: flex;
    flex-direction: column;
}

.header__title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.04em;
    color: var(--t-text-strong, #fff);
    text-transform: uppercase;
    line-height: 1;
}

@media (min-width: 768px) {
    .header__title {
        font-size: 1.35rem;
    }
}

/* NO hover color change on FREQUENCE title */

.header__title-accent {
    color: var(--t-accent, #ef4444);
}

.header__subtitle {
    font-size: 0.6rem;
    font-family: 'Inter', sans-serif;
    color: var(--t-text-muted, rgba(255, 255, 255, 0.4));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    display: none;
}

@media (min-width: 768px) {
    .header__subtitle {
        display: block;
    }
}

/* ── Controls ── */
.header__controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .header__controls {
        gap: 0.5rem;
    }
}

/* ── LIVE Badge — minimal, no box ── */
.header__defcon {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .header__defcon {
        display: flex;
    }
}

.header__defcon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--t-accent, #ef4444);
    animation: badge-pulse 2s ease-in-out infinite;
}

.header__defcon-text {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--t-text-muted, rgba(255, 255, 255, 0.5));
    letter-spacing: 0.08em;
}

/* ── Date — plain text, no border ── */
.header__date {
    display: none;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--t-date-text, rgba(255, 255, 255, 0.35));
    padding: 0 0.25rem;
}

@media (min-width: 768px) {
    .header__date {
        display: block;
    }
}

/* ── Header Buttons — ghost style ── */
.header__btn {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--t-text-muted, rgba(255, 255, 255, 0.5));
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
}

.header__btn:hover {
    color: var(--t-accent, #ef4444);
    transform: scale(1.1);
}

.header__btn:active {
    transform: scale(0.95);
}