/* ─────────────────────────────────────────────────────────
   AIMIRU LANGUAGE SWITCHER STYLES
   ─────────────────────────────────────────────────────────
   - Language button styles (JP/EN/Other)
   - Dropdown menu for 13+ languages
   - Accessibility: keyboard nav, ARIA labels
   - Responsive: full-width to compact on mobile
   ───────────────────────────────────────────────────────── */

/* ─── LANGUAGE SWITCHER CONTAINER ─── */
.lang-switcher-aimiru {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(108,92,231,.12);
  border: 1px solid rgba(162,155,254,.25);
  border-radius: 50px;
  padding: 3px;
}
.lang-sw-btn {
  background: none;
  border: none;
  color: var(--muted, #9990b8);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.lang-sw-btn:hover { color: var(--accent2, #a29bfe); }
.lang-sw-btn.active {
  background: linear-gradient(135deg, rgba(108,92,231,.5), rgba(253,121,168,.3));
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,.3);
}
.lang-sw-other {
  position: relative;
}
.lang-sw-other-btn {
  font-size: 14px !important;
  padding: 4px 10px !important;
  min-width: 36px;
  text-align: center;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(20,16,42,.97);
  border: 1px solid rgba(162,155,254,.3);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 20px rgba(108,92,231,.15);
  z-index: 9999;
  max-height: 320px;
  overflow-y: auto;
}
.lang-dropdown.open { display: flex; flex-direction: column; }
.lang-dd-item {
  background: none;
  border: none;
  color: #f0eef8;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-dd-item:hover {
  background: rgba(108,92,231,.3);
  color: #fff;
}

/* Position at top-right of page */
.lang-bar {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 9000;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .lang-sw-btn { font-size: 11px; padding: 4px 8px; }
  .lang-dropdown { right: -8px; min-width: 140px; }
}
