/* Language Selector Styles */
.language-selector {
  position: relative;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: #f9fafb;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-btn:hover {
  background: rgba(31, 41, 55, 1);
  border-color: rgba(75, 85, 99, 1);
}

.lang-btn:focus {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

.globe-icon {
  width: 1.25rem;
  height: 1.25rem;
}

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

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
}

.lang-dropdown.hidden {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  color: #f9fafb;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  font-size: 0.875rem;
}

.lang-option:hover {
  background: rgba(55, 65, 81, 0.5);
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.lang-code {
  font-weight: 700;
  font-size: 0.75rem;
  opacity: 0.7;
  min-width: 2rem;
}

.lang-name {
  flex: 1;
  font-weight: 500;
}

.checkmark {
  color: #10B981;
  font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .lang-dropdown {
    position: fixed;
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    max-height: 50vh;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
  }

  .lang-option {
    padding: 1rem 0.75rem;
    font-size: 1rem;
  }
}

/* Scrollbar styling */
.lang-dropdown::-webkit-scrollbar {
  width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: #1f2937;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
