/* === Vaderopa i18n — language switcher pill + detection popup === */

/* Header pill */
.vdr-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(26, 23, 20, 0.32);
    color: #1a1714;
    text-decoration: none;
    transition: background 180ms, border-color 180ms;
}
.vdr-lang-pill:hover {
    background: #1a1714;
    color: #faf6ed;
    border-color: #1a1714;
}
.vdr-lang-pill__current {
    color: inherit;
    opacity: 1;
}
.vdr-lang-pill__sep {
    opacity: 0.4;
}
.vdr-lang-pill__other {
    color: inherit;
    opacity: 0.55;
}
.vdr-lang-pill:hover .vdr-lang-pill__other {
    opacity: 1;
}

/* Detection popup */
.vdr-lang-popup {
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 1rem;
    animation: vdr-fade-in 220ms ease-out;
}
.vdr-lang-popup__card {
    background: #faf6ed;
    max-width: 460px;
    width: 100%;
    border: 1px solid #1a1714;
    padding: 2rem 1.75rem 1.5rem;
    animation: vdr-slide-up 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
    position: relative;
}
.vdr-lang-popup__eyebrow {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #1a1714;
    margin: 0 0 0.5rem;
}
.vdr-lang-popup__title {
    font-family: "Fraunces", serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    color: #1a1714;
}
.vdr-lang-popup__body {
    font-family: "Inter Tight", system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: #2a2622;
    margin: 0 0 1.5rem;
}
.vdr-lang-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}
.vdr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: "Inter Tight", system-ui, sans-serif;
    font-weight: 500;
    font-size: 13.5px;
    padding: 0.7rem 1.1rem;
    border-radius: 0;
    cursor: pointer;
    transition: background 180ms, color 180ms, transform 200ms;
    border: 1px solid #1a1714;
}
.vdr-btn--primary {
    background: #edd142;
    color: #1a1714;
    flex: 1;
}
.vdr-btn--primary:hover {
    background: #1a1714;
    color: #edd142;
    transform: translateY(-1px);
}
.vdr-btn--ghost {
    background: transparent;
    color: #1a1714;
}
.vdr-btn--ghost:hover {
    background: #1a1714;
    color: #faf6ed;
}

@keyframes vdr-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vdr-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
