/**
 * Kompakt dil seçici — bayrak + dil adı.
 * data-bs-display="static": Popper kapalı, menü tetikleyicinin altında (mobilde kayma yok).
 */
.lang-switcher {
    flex-shrink: 0;
    position: relative;
    z-index: 1030;
}
.lang-switcher .dropdown-menu {
    margin-top: 0.25rem !important;
}
.lang-switcher .lang-switcher__toggle {
    font-size: 1rem;
    line-height: 1.35;
    color: inherit;
    border: 1px solid transparent;
}
.lang-switcher .lang-switcher__label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(15, 23, 42, 0.88);
}
.lang-switcher .lang-switcher__toggle:hover,
.lang-switcher .lang-switcher__toggle:focus {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.04);
}
.lang-switcher .lang-switcher__toggle::after {
    margin-left: 0.1rem;
    vertical-align: 0.12em;
    transform: scale(0.85);
    opacity: 0.75;
}
.lang-switcher .lang-switcher__trigger-flag {
    width: 22px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.lang-switcher__menu {
    min-width: 9rem !important;
    max-width: min(14rem, calc(100vw - 1rem));
    padding: 0.3rem 0 !important;
    margin-top: 0.35rem !important;
    font-size: 0.8125rem;
    box-shadow: 0 0.35rem 1.25rem rgba(15, 23, 42, 0.1) !important;
}
.lang-switcher__menu .lang-switcher__item {
    padding: 0.4rem 0.65rem !important;
    white-space: normal;
}
.lang-switcher__menu .lang-switcher__item:hover,
.lang-switcher__menu .lang-switcher__item:focus {
    background: rgba(37, 99, 235, 0.06);
}
.lang-switcher__menu .lang-switcher__item.active {
    background: rgba(37, 99, 235, 0.1);
    color: inherit;
}
.lang-switcher__menu .lang-switcher__item-flag {
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
@media (max-width: 575.98px) {
    .lang-switcher {
        margin-right: 0.25rem !important;
    }
    .lang-switcher .lang-switcher__toggle {
        padding-left: 0.3rem !important;
        padding-right: 0.35rem !important;
    }
    .lang-switcher__menu .lang-switcher__item {
        padding: 0.35rem 0.55rem !important;
        font-size: 0.8rem;
    }
}

/* Mobil / tablet: logo ile dil + menü aynı satırda; w-100 marka taşmasını keser */
@media (max-width: 991.98px) {
    .navbar.navbar-expand-lg.classic > .container {
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow: visible !important;
    }
    .navbar.navbar-expand-lg.classic .navbar-brand.w-100 {
        width: auto !important;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0.5rem;
    }
    .navbar.navbar-expand-lg.classic .navbar-other {
        margin-left: 0 !important;
        flex-shrink: 0;
        overflow: visible !important;
    }
    .navbar.navbar-expand-lg.classic .navbar-other .navbar-nav {
        flex-wrap: nowrap;
        align-items: center;
    }
    .lang-switcher__menu {
        max-width: min(12rem, calc(100vw - 2rem));
    }
}

/* Panel üst bar (koyu / mavi): dil seçici okunaklı kalsın */
#kt_header .panel-lang-switcher .lang-switcher__toggle {
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}
#kt_header .panel-lang-switcher .lang-switcher__toggle:hover,
#kt_header .panel-lang-switcher .lang-switcher__toggle:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
#kt_header .panel-lang-switcher .lang-switcher__label {
    color: rgba(255, 255, 255, 0.95);
}
.header-mobile .panel-lang-switcher .lang-switcher__toggle {
    color: #1e293b;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
}
.header-mobile .panel-lang-switcher .lang-switcher__toggle:hover,
.header-mobile .panel-lang-switcher .lang-switcher__toggle:focus {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.35);
}
.header-mobile .panel-lang-switcher .lang-switcher__label {
    color: #1e293b;
}
