/* ═══════════════════════════════════════════════════════════════════════════
   HEADER — inner flex row for spacer / title / actions
═══════════════════════════════════════════════════════════════════════════ */
.header-inner {
    display: grid;
    /* Both flanking columns are exactly 44px — guarantees perfect centering */
    grid-template-columns: 44px auto 44px;
    align-items: center;
    width: 100%;
}

/* Small phones: shrink flanking columns slightly to give title more room */
@media (max-width: 390px) {
    .header-inner {
        grid-template-columns: 40px auto 40px;
    }
    .menu-btn { width: 40px; height: 40px; }
}

/* Invisible spacer — must match the menu button width exactly */
.header-spacer {
    width: 44px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-title {
    text-align: center;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HAMBURGER BUTTON
═══════════════════════════════════════════════════════════════════════════ */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.45);
    transform: translateY(-1px);
}

.menu-btn:active {
    transform: translateY(0) scale(0.96);
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--gold);
    border-radius: 1px;
    transition: all 0.2s;
}

.menu-btn:hover,
.menu-btn:focus-visible {
    background: rgba(197, 160, 89, 0.18);
    border-color: rgba(197, 160, 89, 0.50);
    outline: none;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animated X when open */
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
