/* Language switcher (next to the burger). Dark-theme variant for site
   header; auto-flips for the light footer or RTL Arabic pages. */

.header-right { display: flex; align-items: center; gap: 18px; }

.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 222, 21, 0.5);
  color: var(--yellow, #FFDE15);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  line-height: 1;
}
.lang-btn:hover { background: rgba(255, 222, 21, 0.08); }
.lang-btn .caret { display: inline-block; transform: translateY(-1px); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #111;
  border: 1px solid rgba(255, 222, 21, 0.3);
  border-radius: 6px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 200;
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; }
.lang-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lang-menu a:hover { background: rgba(255, 222, 21, 0.12); color: var(--yellow, #FFDE15); }
.lang-menu a[aria-current="true"] { color: var(--yellow, #FFDE15); }
.lang-draft-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 222, 21, 0.18);
  color: var(--yellow, #FFDE15);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  vertical-align: middle;
}

/* Mobile */
@media (max-width: 760px) {
  .header-right { gap: 10px; }
  .lang-btn { font-size: 11px; padding: 6px 10px; }
  .lang-menu { min-width: 140px; }
  .lang-menu a { padding: 12px 14px; font-size: 15px; }
}

/* RTL Arabic */
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
