/* WORLD ARENA — Language switcher */

.wa-lang {
    position: relative;
    flex-shrink: 0;
}

.wa-lang__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 36px;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.wa-lang__trigger:hover,
.wa-lang.is-open .wa-lang__trigger {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.wa-lang__chev {
    opacity: 0.7;
    transition: transform 0.15s;
}

.wa-lang.is-open .wa-lang__chev {
    transform: rotate(180deg);
}

.wa-lang__menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 400;
    min-width: 10.5rem;
    margin: 0;
    padding: 0.35rem;
    padding-top: calc(0.35rem + 6px);
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 7, 18, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.wa-lang__menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    right: -4px;
    height: 12px;
}

.wa-lang__menu[hidden] {
    display: none;
}

.wa-lang__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.82rem;
    transition: background 0.15s, color 0.15s;
}

.wa-lang__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.wa-lang__item.is-active {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

.wa-lang__item-code {
    min-width: 1.75rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
}

.wa-lang__item.is-active .wa-lang__item-code {
    color: #38bdf8;
}

.wa-auth-shell .wa-lang {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.wa-auth-shell {
    position: relative;
}

@media (max-width: 768px) {
    .wa-lang__menu {
        right: 0;
        left: auto;
    }
}
