/* ===================================
   DİL DEĞİŞTİRME BUTONU STİLLERİ
   ================================== */

.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(20, 15, 35, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(180, 80, 255, 0.3);
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(180, 80, 255, 0.2);
  transition: all 0.3s ease;
}

.language-switcher:hover {
  border-color: rgba(180, 80, 255, 0.8);
  box-shadow: 0 6px 30px rgba(180, 80, 255, 0.4);
  transform: translateY(-2px);
}

.lang-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  outline: none;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(180, 80, 255, 0.8);
}

.lang-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, rgba(180, 80, 255, 0.8), rgba(142, 45, 226, 0.8));
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(180, 80, 255, 0.5);
  z-index: 0;
}

.language-switcher.lang-en .lang-slider {
  transform: translateX(0);
}

.language-switcher.lang-tr .lang-slider {
  transform: translateX(100%);
}

/* Dil değişimi animasyonu */
@keyframes langSwitch {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.language-switcher.switching {
  animation: langSwitch 0.4s ease;
}

.language-switcher.switching .lang-slider {
  box-shadow: 0 6px 25px rgba(180, 80, 255, 0.8);
}

/* Mobil responsive */
@media (max-width: 768px) {
  .language-switcher {
    top: 80px;
    right: 15px;
    padding: 3px;
  }
  
  .lang-btn {
    padding: 6px 16px;
    font-size: 11px;
    letter-spacing: 1px;
  }
}

/* Scroll'da header ile uyumlu animasyon */
header.scrolled ~ .language-switcher {
  background: rgba(15, 10, 30, 0.95);
  border-color: rgba(180, 80, 255, 0.5);
}
