/* Language Switcher Styles for Matcha Usagi */

.language-selector-container {
  display: inline-block;
  position: relative;
}

.language-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Sizing */
  min-width: 160px;
  padding: 10px 36px 10px 14px;

  /* Typography */
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  /* Colors */
  color: #333;
  background-color: white;

  /* Border */
  border: 2px solid #81c784;
  border-radius: 8px;

  /* Shadow */
  box-shadow: 0 2px 8px rgba(129, 199, 132, 0.15);

  /* Interaction */
  cursor: pointer;
  transition: all 0.3s ease;

  /* Background arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2381c784' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.language-selector:hover {
  border-color: #66bb6a;
  box-shadow: 0 4px 12px rgba(102, 187, 106, 0.25);
  transform: translateY(-1px);
}

.language-selector:focus {
  outline: none;
  border-color: #66bb6a;
  box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.2);
}

.language-selector:active {
  transform: translateY(0);
}

/* Option styles (limited browser support) */
.language-selector option {
  padding: 8px;
  font-weight: 500;
}

/* Fixed position variant (used when no mount point exists) */
#language-selector-mount {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .language-selector {
    min-width: 140px;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    background-position: right 10px center;
  }

  #language-selector-mount {
    top: 16px;
    right: 16px;
  }
}

/* Accessibility: High contrast mode */
@media (prefers-contrast: high) {
  .language-selector {
    border-width: 3px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .language-selector {
    transition: none;
  }

  .language-selector:hover {
    transform: none;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .language-selector {
    color: #e8f5e9;
    background-color: #1b5e20;
    border-color: #81c784;
  }

  .language-selector:hover {
    border-color: #a5d6a7;
  }

  .language-selector option {
    background-color: #1b5e20;
    color: #e8f5e9;
  }
}
