/* Dil seçici — Nesne Kombinasyonu aracı (conqueror'dan uyarlandı) */

/* Dil seçici, üstteki başlık şeridini aşağı itmemesi için akıştan çıkarılıp
   sağ üst köşeye sabitlenir (şeridin üzerine biner). */
.topbar {
    position: absolute;
    top: 6px;
    right: 12px;
    z-index: 1200;
}

.lang-switcher {
    position: relative;
}

/* RTL dillerde sol üst köşe */
html[dir="rtl"] .topbar {
    right: auto;
    left: 12px;
}

.list-box2 {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.list-box2 .current2 {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00fbff;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.list-box2 .current2 a {
    color: #00ff00;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.list-box2 .current2 a .globe-icon {
    font-style: normal;
    margin-right: 6px;
}

.list-box2 .current2:after {
    content: '';
    margin-left: 8px;
    width: 8px;
    height: 6px;
    background: #00ff00;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.list-box2 .sub2 {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 150px;
    max-height: 340px;
    overflow-y: auto;
    margin: 6px 0 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(10, 12, 16, 0.97);
    border: 1px solid #00fbff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.list-box2:hover .sub2,
.list-box2:focus-within .sub2 {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.list-box2 .sub2 li { display: block; }

.list-box2 .sub2 li a {
    display: block;
    padding: 8px 16px;
    color: #d8d8d8;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.list-box2 .sub2 li a:hover {
    background: rgba(0, 255, 0, 0.12);
    color: #00ff00;
}

.list-box2 .sub2 li.active a {
    color: #ffcc00;
    font-weight: 600;
}

/* Sağdan sola diller için açılır menü hizalaması */
html[dir="rtl"] .list-box2 .sub2 { right: auto; left: 0; }
