/* =================================================================
   Language Switcher - Comlink
   Header icinde, header-btn yaninda
   ================================================================= */

.lang-switcher {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid #ff3f19;
    margin-left: 15px;
    align-self: center;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #333;
    transition: all 0.3s ease;
}

.lang-switcher a svg {
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.lang-switcher a:hover {
    background: rgba(255, 63, 25, 0.1);
    color: #ff3f19;
}

.lang-switcher a.active {
    background: #ff3f19;
    color: #fff;
}

.lang-switcher a.active:hover {
    background: #e63617;
}

/* Menu area flex duzeni - responsive.css'te tanimli */
/* .menu-area kuralları responsive.css'te yönetiliyor */

/* Header action area - flex nowrap */
.header-action {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

/* Sticky Header durumunda lang-switcher */
.sticky-menu .lang-switcher,
.s-header.sticky-menu .lang-switcher {
    margin-left: 10px;
}

.sticky-menu .lang-switcher a,
.s-header.sticky-menu .lang-switcher a {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
}

.sticky-menu .lang-switcher a svg,
.s-header.sticky-menu .lang-switcher a svg {
    width: 18px;
    height: 12px;
}

/* Header btn ve lang-switcher yan yana kalsın */
.header-btn {
    flex-shrink: 0;
}

.lang-switcher {
    flex-shrink: 0;
}

/* Responsive - Tablet ve Mobile */
@media (max-width: 991px) {
    .lang-switcher {
        position: fixed;
        top: 15px;
        right: 70px;
        z-index: 99999;
        margin-left: 0;
    }
}

/* Responsive - Mobile kucuk */
@media (max-width: 767px) {
    .lang-switcher {
        top: 12px;
        right: 60px;
    }

    .lang-switcher a {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* =================================================================
   Mobile Menu Language Switcher
   Nav icinde li olarak, sadece mobilde gorunur
   Mor tema ile uyumlu (meanmenu stili)
   ================================================================= */

/* Desktop'ta gizle */
.mobile-lang-item {
    display: none !important;
}

/* Mobile'da goster - meanmenu stiliyle uyumlu */
@media (max-width: 991px) {
    .mobile-lang-item {
        display: block !important;
        float: left;
        width: 100%;
        position: relative;
    }

    .mobile-lang-item a {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 10px 5% !important;
        width: 90% !important;
        background: transparent !important;
        border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        text-transform: capitalize;
        transition: all 0.3s ease;
        float: left;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .mobile-lang-item a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    /* SVG bayrak stilleri */
    .mobile-lang-item .lang-flag {
        display: inline-flex;
        align-items: center;
    }

    .mobile-lang-item .lang-flag svg {
        width: 24px;
        height: 16px;
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
}

/* Print - gizle */
@media print {
    .lang-switcher,
    .mobile-lang-switcher {
        display: none !important;
    }
}
