/* =========================================
   DİL SEÇİCİ (LANGUAGE SWITCHER)
   ========================================= */

/* Dil Seçici Konteyneri */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  vertical-align: middle;
}

/* Dil Düyməsi - Temel Ayarlar (Renkler duruma göre aşağıda atanıyor) */
.lang-btn {
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: none; /* Özel imlecin bozulmaması için none yapıldı */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.35s ease;
}

/* 1. Sayfa en üstteyken (Koyu Arka Plan) BEYAZ GÖRÜNÜM */
nav:not(.stuck) .lang-btn {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
nav:not(.stuck) .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: var(--teal) !important; /* Üzerine gelince tatlı yeşil olsun */
}

/* 2. Aşağı kaydırınca (.stuck gelince) SİYAH/KOYU LACİVERT GÖRÜNÜM */
nav.stuck .lang-btn {
  color: var(--text) !important; 
  border: 1px solid var(--border);
}
nav.stuck .lang-btn:hover {
  color: var(--teal) !important;
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.05); /* Üzerine gelince çok hafif arka plan */
}

/* Açılan Menyü */
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #111111;
  border: 1px solid #222222;
  border-radius: 4px;
  min-width: 130px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lang-dropdown.show {
  display: block;
  animation: fadeInLang 0.2s ease;
}

.lang-dropdown a {
  color: #999;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
  cursor: none; /* Özel imleç için none */
}

.lang-dropdown a:hover {
  background: #1a1a1a;
  color: #fff;
}

.lang-dropdown a.active {
  color: #dfb76c; /* Qızılı ton */
  font-weight: bold;
}

@keyframes fadeInLang {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}