/**
 * ADHC — Language Selector Styles
 * =================================
 * Dedicated language selection UI components.
 * Works with LanguageManager + lang_switcher.js.
 * Mobile-first, senior-friendly, village-friendly.
 */

/* ── Language Selector Panel (full redesign) ────────────────────────── */
.lang-selector-panel {
  background:    #ffffff;
  border-radius: 16px;
  overflow:      hidden;
  box-shadow:    0 8px 32px rgba(0,0,0,0.14);
  font-family:   'Inter', system-ui, sans-serif;
}

.lang-selector-header {
  background:     linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  padding:        1rem 1.25rem 0.85rem;
  color:          #fff;
}

.lang-selector-title {
  font-size:   1.05rem;
  font-weight: 900;
  margin-bottom: 2px;
  display:     flex;
  align-items: center;
  gap:         0.4rem;
}

.lang-selector-sub {
  font-size:   0.7rem;
  opacity:     0.82;
  font-weight: 500;
}

/* ── Available section ──────────────────────────────────────────────── */
.lang-available-section {
  padding: 0.85rem 1rem 0.5rem;
}

.lang-section-badge {
  font-size:      0.65rem;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom:  0.5rem;
  display:        flex;
  align-items:    center;
  gap:            0.35rem;
}

.lang-section-badge.available { color: #0d9488; }
.lang-section-badge.coming    { color: #94a3b8; }

/* ── Language button ────────────────────────────────────────────────── */
.lang-btn {
  display:       flex;
  align-items:   center;
  gap:           0.85rem;
  width:         100%;
  padding:       0.75rem 0.9rem;
  min-height:    56px;           /* large touch target */
  border-radius: 12px;
  border:        1.5px solid transparent;
  background:    #fff;
  cursor:        pointer;
  font-family:   'Inter', system-ui, sans-serif;
  font-size:     1rem;
  font-weight:   700;
  color:         #0f172a;
  margin-bottom: 0.4rem;
  transition:    all 0.15s ease;
  text-align:    left;
}

.lang-btn:hover {
  border-color: rgba(13,148,136,0.3);
  background:   rgba(13,148,136,0.05);
}

.lang-btn.active {
  border-color: #0d9488;
  background:   rgba(13,148,136,0.08);
  color:        #0d9488;
}

.lang-btn-flag   { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.lang-btn-name   { flex: 1; }
.lang-btn-check  { color: #0d9488; font-size: 1rem; font-weight: 900; }

/* ── Divider ────────────────────────────────────────────────────────── */
.lang-divider {
  height:     1px;
  background: #f1f5f9;
  margin:     0.5rem 0;
}

/* ── Coming soon section ────────────────────────────────────────────── */
.lang-coming-section { padding: 0.5rem 1rem 1rem; }

.lang-coming-item {
  display:       flex;
  align-items:   center;
  gap:           0.85rem;
  padding:       0.55rem 0.75rem;
  border-radius: 10px;
  font-size:     0.95rem;
  font-weight:   600;
  color:         #94a3b8;
  margin-bottom: 0.2rem;
}

.lang-coming-badge {
  margin-left:   auto;
  font-size:     0.6rem;
  font-weight:   800;
  background:    rgba(13,148,136,0.1);
  color:         #0d9488;
  padding:       3px 9px;
  border-radius: 999px;
  white-space:   nowrap;
}

/* ── Scroll hint ────────────────────────────────────────────────────── */
.lang-scroll-hint {
  text-align:   center;
  padding:      0.5rem 0 0.2rem;
  font-size:    0.62rem;
  color:        #cbd5e1;
  font-weight:  600;
  border-top:   1px solid #f1f5f9;
  margin:       0 1rem;
}

/* ── Floating Language FAB ──────────────────────────────────────────── */
#lang-fab {
  position:     fixed;
  bottom:       7.5rem;
  right:        1.25rem;
  width:        52px;
  height:       52px;
  border-radius: 50%;
  background:   #fff;
  border:       2px solid #e2e8f0;
  box-shadow:   0 3px 12px rgba(0,0,0,0.12);
  display:      flex;
  flex-direction: column;
  align-items:  center;
  justify-content: center;
  cursor:       pointer;
  z-index:      998;
  font-size:    0.7rem;
  font-weight:  800;
  color:        #0d9488;
  line-height:  1.1;
  transition:   box-shadow 0.15s;
}

#lang-fab:hover {
  box-shadow: 0 6px 20px rgba(13,148,136,0.2);
}

/* ── Language panel (injected by LangSwitcher.init) ──────────────────── */
#lang-panel {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 414px) {
  .lang-btn      { min-height: 52px; font-size: 0.95rem; }
  #lang-panel    { min-width: 200px !important; }
}

@media (max-width: 375px) {
  .lang-btn      { padding: 0.65rem 0.75rem; }
  .lang-btn-flag { font-size: 1.2rem; }
}

/* ── Reduce motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lang-btn { transition: none !important; }
}
