/**
 * Language Dropdown Styles
 * Dropdown menu for language selection in landing pages
 */

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Dropdown wrapper positioning */
.language-dropdown-wrapper {
  position: relative;
}

/* Dropdown menu styles */
.language-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 160px;
  z-index: 50;
  border-radius: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  animation: dropdownFadeIn 0.2s ease-out forwards;
  backdrop-filter: blur(18px);
  background: rgba(10, 5, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dropdown fade-in animation */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown item base styles */
.dropdown-item {
  cursor: pointer;
  border-left: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(243, 232, 255, 0.85);
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

/* Dropdown item hover state */
.dropdown-item:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: #FDA481; /* dream-salmon */
}

/* Dropdown item active/disabled state (for future use) */
.dropdown-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Check icon styles */
.dropdown-item .text-dream-salmon {
  color: #FDA481;
}

/* Hidden check icon */
.dropdown-item .current-lang-indicator.hidden {
  display: none;
}

/* Chevron rotation transition */
#dropdownChevron {
  transition: transform 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .language-dropdown-menu {
    right: -8px;
    min-width: 140px;
    font-size: 0.8125rem;
  }

  .dropdown-item {
    padding: 0.4rem 0.75rem;
  }
}

/* Ensure proper z-stacking */
.language-dropdown-menu {
  z-index: 50;
}

/* Glass button hover enhancement */
.glass-button:hover {
  border-color: #FDA481; /* dream-salmon */
  color: white;
}

