/* ================================
   LANGUAGE SWITCHER
================================ */

.language-switcher {
    display: inline-block;
    position: relative; /* dropdown anchor shu div ga nisbatan */
}

/* Button */
.language-switcher .btn-outline-light {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    transition: all 0.25s ease;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.language-switcher .btn-outline-light:hover,
.language-switcher .btn-outline-light.show {
    background-color: rgba(0, 100, 255, 0.12);
    border-color: rgba(0, 100, 255, 0.6);
    color: #fff;
}

.language-switcher .btn-outline-light:focus {
    box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.2);
    outline: none;
}

.language-switcher .dropdown-toggle::after {
    margin-left: 6px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.language-switcher .btn-outline-light.show::after {
    transform: rotate(180deg);
}

/* Dropdown panel — Bootstrap data-bs-display="static" bilan ishlaydi */
.language-switcher .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    inset: auto !important;

    background-color: #0f1923;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 155px;
    padding: 6px;
    z-index: 9999;

    /* Kirish animatsiyasi */
    opacity: 0;
    translate: 0 -6px;
    visibility: hidden;
    transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.language-switcher .dropdown-menu.show {
    opacity: 1;
    translate: 0 0;
    visibility: visible;
    pointer-events: auto;
}

/* Bandlar */
.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.language-switcher .dropdown-item:hover {
    background-color: rgba(0, 100, 255, 0.18);
    color: #fff;
}

.language-switcher .dropdown-item span:first-child {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Mobil uchun hamburger yonida joy */
@media (max-width: 1199px) {
    .header-lang {
        margin-right: 50px;
    }
}

@media (max-width: 576px) {
    .language-switcher .dropdown-menu {
        min-width: 135px;
    }
}
