/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 4px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 40px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.lang-btn:hover {
  color: #ff9434;
  background: rgba(255, 148, 52, 0.1);
  transform: scale(1.05);
}

.lang-btn.active {
  background: linear-gradient(135deg, #ff9434, #ff6b35);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 148, 52, 0.3);
  transform: scale(1.05);
}

.lang-btn.active:hover {
  background: linear-gradient(135deg, #ff6b35, #ff9434);
  color: white;
  box-shadow: 0 6px 16px rgba(255, 148, 52, 0.4);
}

.lang-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 148, 52, 0.3);
}

.lang-btn:active {
  transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .language-switcher {
    margin-right: 10px;
    padding: 3px;
    border-radius: 20px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: 35px;
    border-radius: 15px;
  }

  /* Adjust position for mobile menu */
  .nav-container {
    position: relative;
  }

  .language-switcher {
    position: absolute;
    top: 50%;
    right: 60px; /* Position to the left of mobile menu toggle */
    transform: translateY(-50%);
    z-index: 1002;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    right: 50px;
    padding: 2px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
    min-width: 30px;
  }
}

/* Animation for language switching */
@keyframes languageSwitch {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.language-switcher.switching {
  animation: languageSwitch 0.3s ease-in-out;
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .language-switcher {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lang-btn {
    color: #e0e0e0;
  }

  .lang-btn:hover {
    color: #ff9434;
    background: rgba(255, 148, 52, 0.2);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .language-switcher {
    border: 2px solid #333;
    background: white;
  }

  .lang-btn {
    color: #000;
    border: 1px solid transparent;
  }

  .lang-btn:hover {
    border: 1px solid #ff9434;
  }

  .lang-btn.active {
    background: #ff9434;
    color: white;
    border: 1px solid #ff9434;
  }
}
