/* Language Switcher Styles */
.language-selector-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  
    display: flex;          /* Flexbox aktif */
    align-items: center;    /* Dikey ortalama */
    height: 40px;           /* Yüksekliği belirle (butona uyacak şekilde) */
  }

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.language-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 123, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.language-btn .current-flag {
  font-size: 16px;
}

.language-btn .current-lang {
  font-weight: 600;
}

.language-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.language-dropdown.active .language-btn i {
  transform: rotate(180deg);
}

.language-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  overflow: hidden;
}

.language-dropdown.active .language-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.language-option.active {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
  font-weight: 600;
}

.language-option .flag {
  font-size: 18px;
}

.language-option .lang-name {
  font-size: 14px;
  font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .language-selector-fixed {
    top: 15px;
    right: 15px;
  }
  
  .language-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .language-btn .current-flag {
    font-size: 14px;
  }
  
  .language-dropdown-content {
    min-width: 140px;
  }
  
  .language-option {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .language-option .flag {
    font-size: 16px;
  }
  
  .language-option .lang-name {
    font-size: 12px;
  }
}

/* Animation for language change */
[data-translate] {
  transition: opacity 0.3s ease;
}

[data-translate].translating {
  opacity: 0.7;
}

/* Arrow icon */
.icon-arrow-down::before {
  content: "▼";
  font-size: 10px;
}
