/* CIHAN LOJISTIK - LANGUAGE SWITCH */

#cl-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(120,135,150,.3);
    border-radius: 30px;
    background: #15243a;
    white-space: nowrap;
    z-index: 1000;
    vertical-align: middle;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

#cl-language-switch button {
    cursor: pointer;
    font: 700 12px Inter, Arial, sans-serif;
    border: 0;
    border-radius: 20px;
    padding: 8px 10px;
    color: #d5e0ef;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, color .2s;
}

#cl-language-switch button.active {
    background: #f4b72c;
    color: #132033;
}

#cl-language-switch button:focus-visible {
    outline: 2px solid #ffc855;
    outline-offset: 2px;
}

#cl-language-switch .cl-label {
    line-height: 1;
}

/* BAYRAKLAR */

#cl-language-switch .cl-flag {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 18px;
}

#cl-language-switch .cl-flag-tr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23E30A17'/%3E%3Ccircle cx='10' cy='10' r='5' fill='white'/%3E%3Ccircle cx='11.5' cy='10' r='4' fill='%23E30A17'/%3E%3Cpath d='M20 10l-5.43 1.76 3.35-4.62v5.72l-3.35-4.62z' fill='white'/%3E%3C/svg%3E");
}

#cl-language-switch .cl-flag-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23012169'/%3E%3Cpath d='M0 0l18 12M18 0L0 12' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M0 0l18 12M18 0L0 12' stroke='%23C8102E' stroke-width='1.5'/%3E%3Cpath d='M9 0v12M0 6h18' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M9 0v12M0 6h18' stroke='%23C8102E' stroke-width='2.2'/%3E%3C/svg%3E");
}

/* ANA SITE */

.cl-lang-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

body > #cl-language-switch {
    position: fixed;
    right: 18px;
    bottom: 20px;
}

/* PANEL KONUMLANDIRMA */

.cl-lang-panel-slot {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 12px;
    flex-shrink: 0;
}

/* PANEL BEYAZ TEMA */

.topbar .cl-lang-panel-slot #cl-language-switch {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.03) !important;
    padding: 6px !important;
}

.topbar .cl-lang-panel-slot #cl-language-switch button {
    color: #555555 !important;
    background: transparent !important;
}

.topbar .cl-lang-panel-slot #cl-language-switch button.active {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.topbar .cl-lang-panel-slot #cl-language-switch button:not(.active):hover {
    background: #f4f4f4 !important;
}

/* MOBIL UYUMLULUK */

@media (max-width: 992px) {

    .cl-lang-nav {
        padding: 14px 8px;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .cl-lang-panel-slot {
        margin-left: auto;
        margin-right: 0;
    }
}

@media (max-width: 576px) {

    #cl-language-switch button {
        padding: 7px 9px;
        font-size: 11px;
    }

    .cl-lang-panel-slot {
        margin-left: auto;
    }
}
/* Public navbar: compact real flag labels, not emoji country codes. */
#main-navbar #cl-language-switch{background:#24252a;border-color:#414247;box-shadow:none;padding:3px;gap:2px}
#main-navbar #cl-language-switch button{padding:7px 8px;gap:5px;color:#f4f4f5}
#main-navbar #cl-language-switch button.active{background:#f59e0b;color:#17181c}
@media(min-width:993px) and (max-width:1250px){#main-navbar #cl-language-switch button{padding:6px;gap:4px}}
