/* Language switcher (Phase 5-3) */
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: inherit;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(201, 168, 76, 0.4); }
.lang-toggle .lang-flag  { font-size: 1.05rem; line-height: 1; }
.lang-toggle .lang-label { font-weight: 500; }
.lang-toggle .lang-caret { font-size: 0.7rem; opacity: 0.6; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #1a1d29;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  min-width: 160px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-menu li { margin: 0; }
.lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #d8dae6;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.lang-item:hover  { background: rgba(255, 255, 255, 0.07); }
.lang-item.active { color: #c9a84c; background: rgba(201, 168, 76, 0.1); }

@media (max-width: 640px) {
  .lang-toggle .lang-label { display: none; }
  .lang-menu { min-width: 140px; }
}
