/* ═══════════════════════════════════════════════
   Language Switcher — ABC Tester
   Glassmorphism dropdown for language selection
   ═══════════════════════════════════════════════ */

/* ── Switcher Container ── */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    z-index: 1000;
}

/* ── Toggle Button ── */
.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.lang-switcher__toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

.lang-switcher__icon {
    font-size: 1rem;
    line-height: 1;
}

.lang-switcher__current {
    letter-spacing: 0.5px;
}

/* ── Dropdown Panel ── */
.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.lang-switcher__dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Dropdown Items ── */
.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary, #a0a0b0);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.lang-switcher__item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
}

.lang-switcher__item--active {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

.lang-switcher__item--active:hover {
    background: rgba(139, 92, 246, 0.2);
}

.lang-switcher__name {
    flex: 1;
    font-weight: 500;
}

.lang-switcher__code {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text-secondary, #888);
    font-weight: 600;
}

.lang-switcher__check {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   Language Availability Bar — Above Footer
   ═══════════════════════════════════════════════ */

.lang-availability-bar {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.lang-availability-bar__langs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 0.82rem;
}

.lang-availability-bar__link {
    color: var(--text-secondary, #888);
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 2px 0;
}

.lang-availability-bar__link:hover {
    color: #c4b5fd;
}

.lang-availability-bar__link--active {
    color: #8b5cf6;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 4px;
    }

    .lang-switcher__toggle {
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .lang-switcher__current {
        display: none;
    }

    .lang-switcher__dropdown {
        right: -20px;
        min-width: 160px;
    }

    .lang-availability-bar__langs {
        gap: 4px 10px;
        font-size: 0.78rem;
    }
}
