/* ── VoiceMemoir — Language Toggle Pill ───────────────────── */

/*
 * Design tokens (mirrored from style.css for standalone use):
 *   --accent:     #B45309
 *   --text:       #1C1917
 *   --text-muted: #78716C
 *   --surface:    #FFFFFF
 *   --border:     #E2DED8
 *   --radius-sm:  8px
 */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border, #E2DED8);
    border-radius: 999px;           /* full pill */
    padding: 3px;
    gap: 0;
    line-height: 1;
    /* Slight shadow so it lifts off the nav background */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    /* Keep it from stretching in flex containers */
    flex-shrink: 0;
}

.lang-option {
    /* Reset */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;

    /* Sizing */
    min-width: 34px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;

    /* Typography */
    font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #78716C);

    /* Animation */
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

/* Active / selected language */
.lang-option.active {
    background: var(--accent, #B45309);
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.30);
}

/* Hover on inactive option */
.lang-option:not(.active):hover {
    background: var(--surface-2, #F5F3F0);
    color: var(--text, #1C1917);
}

/* Focus ring — keyboard accessible */
.lang-option:focus-visible {
    outline: 2px solid var(--accent, #B45309);
    outline-offset: 2px;
}

/* ── Responsive adjustments ──────────────────────────────── */

/* On small screens the nav collapses; keep toggle readable */
@media (max-width: 700px) {
    .lang-toggle {
        /* Move to a consistent spot if nav links are stacked */
        align-self: flex-start;
    }

    .lang-option {
        min-width: 30px;
        height: 24px;
        padding: 0 8px;
        font-size: 0.68rem;
    }
}
