/* ============================================================
   BIG LIFESTYLE — LANGUAGE SELECTOR CSS (lang-select.css)
   Charcoal dropdown · gold accents · refined Inter typography.
   Matches dept-core design language; self-contained for all pages.
   ============================================================ */

.lang-select { position: relative; display: inline-block; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(18,18,18,0.6);
  border: 1px solid rgba(197,165,94,0.28);
  color: rgba(245,240,232,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px;
  padding: 8px 14px; border-radius: 2px;
  cursor: pointer; transition: border-color .25s, color .25s, background .25s;
}
.lang-btn:hover, .lang-select.open .lang-btn {
  border-color: rgba(224,188,107,0.55); color: #E0BC6B;
  background: rgba(18,18,18,0.9);
}
.lang-globe { opacity: .8; flex: 0 0 auto; }
.lang-code { line-height: 1; }
.lang-caret { flex: 0 0 auto; opacity: .7; transition: transform .25s; margin-top: 1px; }
.lang-select.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200;
  min-width: 208px; margin: 0; padding: 6px; list-style: none;
  background: #121212;
  border: 1px solid rgba(197,165,94,0.25);
  box-shadow: 0 18px 44px rgba(0,0,0,0.6);
  border-radius: 3px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.lang-select.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; border-radius: 2px; cursor: pointer;
  color: rgba(245,240,232,0.82);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  transition: background .18s, color .18s;
}
.lang-item:hover, .lang-item:focus { background: rgba(197,165,94,0.10); color: #F5F0E8; outline: none; }
.lang-item:focus-visible { outline: 1px solid rgba(224,188,107,0.6); outline-offset: -1px; }
.lang-item .lang-item-code {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted, #8A8580);
  border: 1px solid rgba(197,165,94,0.25); padding: 2px 6px; border-radius: 2px;
}
.lang-item.on { color: #E0BC6B; font-weight: 600; }
.lang-item.on .lang-item-code { color: #E0BC6B; border-color: rgba(224,188,107,0.5); }
.lang-item.on::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #E0BC6B; margin-right: -4px; }
/* untranslated: honest, dimmed, non-navigable */
.lang-item.off { opacity: .45; cursor: not-allowed; }
.lang-item.off:hover { background: transparent; color: rgba(245,240,232,0.5); }

/* ---- mobile drawer variant ---- */
.lang-select-mobile { display: flex; justify-content: center; padding: 12px 16px 0; }
.lang-select-mobile .lang-btn { min-width: 132px; justify-content: center; }
.lang-select-mobile .lang-menu {
  left: 50%; right: auto;
  margin-left: -104px;   /* center 208px menu under the button */
}
.lang-item { padding: 11px 14px; }

@media (max-width: 480px) {
  .lang-select-mobile .lang-menu { width: 208px; margin-left: -104px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-menu, .lang-caret, .lang-btn { transition: none !important; }
}
