/* =============================================================================
   CORE component — LanguageSwitch Module - default theme
   Generated by Fehmi Demiralp
   ============================================================================= */

/* ── Language Switcher ────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 3px;
}

.lang-btn {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover  { color: #fff; background: rgba(255,255,255,0.1); }
.lang-active     { background: #fff !important; color: #111 !important; }

/* ── Language switcher — dropdown mode (> 2 languages) ──────────────────────── */
.lang-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  /* SVG/PNG rendered same way as footer social icons */
  filter: brightness(0) invert(0.75);
  transition: filter 0.2s;
}
.lang-drop-btn:hover .lang-icon-img { filter: brightness(0) invert(1); }

.lang-dropdown-row {
  display: flex;
  gap: 2px;
}

.lang-active-btn {
  /* Active locale label */
}

/* ── i18n drop anchor ────────────────────────────────────────────────────── */
.lang-drop-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.lang-drop-anchor:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.lang-drop-glyph {
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.lang-drop-anchor:hover .lang-drop-glyph { color: #ffffff; }

.lang-switcher {
  position: relative;   /* dropdown is absolute-positioned against this */
}

.lang-dropdown-list {
  position: fixed;
  z-index: 9999;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 4px;
  min-width: 72px;
  max-width: 200px;
  width: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-dropdown-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lang-dropdown-item.lang-active { background: #fff; color: #111; }

