/* Locale Selector Styles */
.locale-selector {
  position: relative;
  display: inline-block;
}

.locale-toggle {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.locale-toggle:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.locale-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

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

.locale-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

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

.locale-option:hover {
  background: #f9fafb;
}

.locale-option.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.locale-option.active::after {
  content: ' ✓';
  float: right;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .locale-dropdown {
    right: auto;
    left: 0;
  }
}
