/* Language switcher — text dropdown in the navbar */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  font-family: "Switzer", sans-serif;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
}

.lang-switcher-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switcher-btn:hover,
.lang-switcher-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.lang-switcher-btn::after {
  content: "▾";
  font-size: 10px;
  line-height: 1;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  min-width: 120px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.lang-switcher-menu[hidden] {
  display: none;
}
.lang-switcher-menu li {
  margin: 0;
}
.lang-switcher-menu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.lang-switcher-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lang-switcher-menu a[aria-current="true"] {
  color: #ff5a3d;
}

/* On RTL pages, anchor menu to the left */
html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}
