/* ============================================================
   NAVIGATION & HEADER
   ============================================================ */

.header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 10;
}

nav {
    background-color: #ffffff;
    padding: 0 1.5rem;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.header-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-brand, #1a2849);
    text-decoration: none;
}

    .header-title:hover {
        color: var(--color-brand, #1a2849);
        text-decoration: none;
    }

.header-action-container {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

.header-button {
    border: none;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    color: var(--color-muted);
    border-radius: 4px;
    transition: color 0.12s, background 0.12s;
}

    .header-button:hover {
        background: var(--color-brand-soft, #e8ecf6);
        color: var(--color-brand, #1a2849);
        text-decoration: none;
    }

    .header-button.active {
        color: var(--color-brand, #1a2849);
        font-weight: 600;
        background: transparent;
    }

/* ── More dropdown ── */
.nav-more-wrap {
    position: relative;
}

.nav-more-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-chevron {
    font-size: 0.58rem;
    line-height: 1;
    opacity: 0.4;
}

/* Backdrop — closes the dropdown when clicking outside */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
}

/* Dropdown panel */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 99;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    padding: 0.3rem;
    min-width: 240px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    animation: dropIn 0.12s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-drop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-dark-text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.08s, color 0.08s;
    white-space: nowrap;
}

    .nav-drop-item:hover,
    .nav-drop-item.active {
        background: var(--color-brand-soft, #e8ecf6);
        color: var(--color-brand, #1a2849);
        text-decoration: none;
    }

    .nav-drop-item.active {
        font-weight: 600;
    }

    /* Full-width item (Settings at bottom) */
    .nav-drop-item--full {
        grid-column: span 2;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 0.15rem;
        padding-top: 0.55rem;
        color: var(--color-muted);
        font-size: 0.78rem;
    }

.nav-drop-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background: #cc3333;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.07rem 0.38rem;
    min-width: 16px;
    text-align: center;
    flex-shrink: 0;
}

    .nav-drop-badge--green {
        background: #2d9e5f;
    }
