/* assets/css/lang_switcher.css — компактний перемикач мов UA/EN */

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 999px;
    padding: 3px;
    gap: 0;
    backdrop-filter: blur(6px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-switcher:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06);
}

.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    text-decoration: none;
}

.lang-switcher__btn:hover {
    color: #e2e8f0;
}

.lang-switcher__btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(29, 78, 216, 0.35));
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.lang-switcher__flag {
    font-size: 13px;
    line-height: 1;
}

/* Sidebar variant — у нижній частині сайдбару, зверху над logout */
.sidebar .lang-switcher {
    margin: 0 14px 10px;
    align-self: stretch;
    justify-content: center;
    width: calc(100% - 28px);
}

.sidebar .lang-switcher__btn {
    flex: 1;
    justify-content: center;
}

/* Landing variant — у nav-bar поряд з кнопками auth */
.nav-blur .lang-switcher {
    background: rgba(15, 23, 42, 0.5);
}

/* Auth page (reset_password.php / index.php landing modal) variant */
.auth-page .lang-switcher,
.lang-switcher--floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
}

@media (max-width: 640px) {
    .lang-switcher__btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}
