/**
 * Navigation
 *
 * A 72px bar carrying the logo, text links, a gold pill on the current section
 * and the signed-in organiser's initials at the right.
 *
 * The previous bar was neumorphic: every link was a raised slab with two drop
 * shadows and a blur, and hovering lifted it 2px. Nothing here lifts. The
 * current section is marked by a filled pill, which is what the reader is
 * actually looking for.
 */

.christmas-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    background: var(--color-teal-panel);
    border-bottom: 1px solid rgba(247, 243, 232, 0.10);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    max-width: 1200px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 var(--space-10);
}

/* ============================================
   BRAND
   ============================================ */

.nav-logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 0 0 auto;
    text-decoration: none;
}

.nav-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/*
 * .nav-brand was defined here and emitted by nothing. templates/header.php
 * renders the mark as a bare <img class="nav-logo">, so this styled a wordmark
 * that does not exist in the signed-in chrome. Dead rules are worse than
 * missing ones: they read as the system's answer when nothing consults them.
 */

/* ============================================
   LINKS
   ============================================ */

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 38px;
    padding: 0 var(--space-4);
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-on-dark-muted);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--duration-fast) var(--easing),
                color var(--duration-fast) var(--easing);
}

.nav-link:hover {
    background: rgba(247, 243, 232, 0.08);
    color: var(--color-cream);
}

.nav-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.nav-link.active {
    background: var(--color-gold);
    color: var(--color-on-gold);
}

.nav-link.active:hover {
    background: var(--color-gold-hover);
    color: var(--color-on-gold);
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   RIGHT-HAND SIDE
   ============================================ */

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 0 0 auto;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.8125rem;
}

.nav-logout {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 38px;
    padding: 0 var(--space-4);
    border: 1px solid var(--border-on-dark);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--duration-fast) var(--easing);
}

.nav-logout:hover {
    background: rgba(247, 243, 232, 0.10);
    color: var(--color-cream);
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */

.language-selector .dropdown-menu {
    min-width: 180px;
    padding: var(--space-2);
    border: 1px solid var(--border-on-light-hairline);
    border-radius: var(--radius-lg);
    background: var(--color-cream);
    box-shadow: var(--shadow-modal);
}

.language-selector .dropdown-item {
    display: block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-on-light);
    font-size: var(--font-size-base);
    text-decoration: none;
}

.language-selector .dropdown-item:hover,
.language-selector .dropdown-item:focus {
    background: rgba(26, 77, 77, 0.08);
    color: var(--text-on-light);
}

.language-selector .dropdown-item.active {
    background: var(--color-warning-tint);
    color: var(--color-gold-ink);
    font-weight: var(--font-weight-semibold);
}

/* ============================================
   MOBILE
   ============================================ */

.nav-menu-toggle {
    display: none;
    align-items: center;
    gap: var(--space-2);
    height: 38px;
    padding: 0 var(--space-4);
    border: 1px solid var(--border-on-dark);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

.nav-menu-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        padding: var(--space-3) var(--space-4);
        min-height: 0;
    }

    .nav-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--space-1);
        padding-bottom: var(--space-2);
    }

    .nav-links.is-open,
    .nav-menu-toggle[aria-expanded='true'] + .nav-links {
        display: flex;
    }

    .nav-link,
    .nav-logout {
        width: 100%;
        justify-content: flex-start;
    }
}
