/* ==========================================================================
   Dil değiştirici / Language switcher (Google Translate ile otomatik çeviri)
   Kaynak dil: Türkçe  |  Hedef diller: EN / FR / DE
   Sitenin mevcut header tasarımına uygun; masaüstü ve mobil için ayrı.
   ========================================================================== */

/* --- Google Translate arayüzünü gizle -------------------------------------- */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-te-gadget {
    height: 0;
    overflow: hidden;
    font-size: 0 !important;
    color: transparent !important;
}

.gtranslate-host {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.skiptranslate iframe {
    visibility: hidden !important;
    height: 0 !important;
    border: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* ==========================================================================
   MASAÜSTÜ
   ========================================================================== */
.lang-switch {
    position: relative;
    z-index: 21;
    margin-left: 12px;
    font-family: 'Poppins', sans-serif;
}

.lang-switch__toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 50px;
    padding: 0 15px 0 7px;
    background-color: #F7F7F7;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    outline: none;
    transition: all .3s ease;
}

.lang-switch__icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 100%;
    background-color: #fff;
    color: #0F142B;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.lang-switch__current {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0F142B;
    letter-spacing: .5px;
    transition: color .3s ease;
}

.lang-switch__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #0F142B;
    transition: transform .3s ease, border-color .3s ease;
}

.lang-switch:hover .lang-switch__toggle,
.lang-switch.is-open .lang-switch__toggle {
    background-color: #0F142B;
}

.lang-switch:hover .lang-switch__icon,
.lang-switch.is-open .lang-switch__icon {
    background-color: #283159;
    color: #fff;
}

.lang-switch:hover .lang-switch__current,
.lang-switch.is-open .lang-switch__current {
    color: #fff;
}

.lang-switch:hover .lang-switch__caret,
.lang-switch.is-open .lang-switch__caret {
    border-top-color: #fff;
    transform: rotate(180deg);
}

.lang-switch__menu {
    position: absolute;
    top: 60px;
    right: 0;
    min-width: 190px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: #0F142B;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .3s ease;
}

/* Buton ile menü arasındaki boşlukta hover kaybolmasın */
.lang-switch__menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.lang-switch:hover .lang-switch__menu,
.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switch__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease;
}

.lang-switch__option > span {
    width: 28px;
    height: 20px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, .12);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.lang-switch__option:hover {
    background: rgba(255, 255, 255, .08);
}

.lang-switch__option.is-active > span {
    background: #E1251B;
    color: #fff;
}

/* Orta boy masaüstünde (lg) header sığması için kompakt görünüm */
@media (min-width: 992px) and (max-width: 1169.98px) {
    .lang-switch {
        margin-left: 8px;
    }

    .lang-switch__toggle {
        gap: 5px;
        padding: 0 10px 0 6px;
    }

    .lang-switch__current {
        display: none;
    }
}

/* ==========================================================================
   MOBİL
   ========================================================================== */
.lang-switch-mobile {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-family: 'Poppins', sans-serif;
}

.lang-switch-mobile__label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    opacity: .7;
}

.lang-switch-mobile__list {
    display: flex;
    gap: 10px;
}

.lang-switch-mobile__btn {
    flex: 1 1 0;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    outline: none;
    transition: all .2s ease;
}

.lang-switch-mobile__btn:hover,
.lang-switch-mobile__btn.is-active {
    background: #fff;
    color: #E1251B;
    border-color: #fff;
}

/* ==========================================================================
   KARANLIK MOD
   ========================================================================== */
body.dark-mode .lang-switch__toggle {
    background-color: #232427;
}

body.dark-mode .lang-switch__icon {
    background-color: #2F3136;
    color: #fff;
}

body.dark-mode .lang-switch__current {
    color: #fff;
}

body.dark-mode .lang-switch__caret {
    border-top-color: #fff;
}

body.dark-mode .lang-switch:hover .lang-switch__toggle,
body.dark-mode .lang-switch.is-open .lang-switch__toggle {
    background-color: #2F3136;
}

body.dark-mode .lang-switch__menu {
    background: #232427;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}
