/* Dil Değiştirici Ana Konteyner */
.custom-lang-switcher {
    position: relative;
    display: inline-block;
    /* font-family php tarafindan dinamil basilmaktadir */
    color: #333;
    user-select: none;
    line-height: 1;
}

/* Üst Bar / Tıklanabilir Alan */
.cls-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* font ayarları php den ezilir */
    gap: 8px;
    padding: 8px 12px;
    color: inherit;
    transition: opacity 0.2s, border 0.2s;
    box-sizing: border-box;
}

.cls-toggle:hover {
    opacity: 0.8;
}

/* Tasarım Seçenekleri - Kapsül Modeli */
.custom-lang-switcher.style-capsule .cls-toggle {
    border: 1px solid currentColor;
    border-radius: 50px;
    padding: 6px 16px;
}

/* Tasarım Seçenekleri - Kutu Çerçeveli Modeli */
.custom-lang-switcher.style-bordered .cls-toggle {
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 6px 14px;
}

/* Tasarım Seçenekleri - Minimal Modeli */
.custom-lang-switcher.style-minimal .cls-toggle {
    padding: 6px 8px;
}
.custom-lang-switcher.style-minimal .cls-arrow {
    opacity: 0.6;
    transform: scale(0.85);
}
.custom-lang-switcher.style-minimal.open .cls-arrow {
    transform: scale(0.85) rotate(180deg);
}

/* Küçük Ok İkonu */
.cls-arrow {
    transition: transform 0.3s ease;
}

.custom-lang-switcher.open .cls-arrow {
    transform: rotate(180deg);
}

/* Açılır Menü (Dropdown) */
.cls-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    /* min-width PHP'den dinamik olarak basılır */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 10px 0 15px 0;
    border-radius: 6px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-lang-switcher.open .cls-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menü Başlığı */
.cls-header {
    font-size: 13px;
    color: #555;
    padding: 10px 20px 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

/* Dil Listesi */
.cls-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cls-item {
    display: flex;
    align-items: center;
    /* padding PHP'den dinamik olarak basılır */
    cursor: pointer;
    transition: background 0.2s;
    gap: 15px;
}

.cls-item:hover {
    background: #f8f9fa;
}

.cls-item.active {
    background: #f4f4f4;
}

/* Bayrak Görseli */
.cls-flag {
    /* genişlik php den basılır */
    height: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

/* Dil İsmi */
.cls-name {
    /* Font ayarları ve text-transform gibi özellikler PHP'den dinamik olarak gelir */
    color: #a0a0a0;
    letter-spacing: 0.5px;
}

.cls-item:hover .cls-name,
.cls-item.active .cls-name {
    color: #444;
}

/* Mobil Uyumluluk (Responsive) */
@media (max-width: 768px) {
    .cls-toggle {
        padding: 6px 10px;
    }
    .custom-lang-switcher.style-capsule .cls-toggle {
        padding: 5px 12px;
    }
    .cls-dropdown {
        right: 0;
        left: auto;
    }
    .cls-header {
        padding: 8px 15px 10px 15px;
    }
    .cls-item {
        gap: 10px;
    }
}
