/* Dil seçici (başlık çubuğu).
 * Başlık çubuğu temaya göre değişir (koyu: koyu zemin, açık: açık zemin); renkler bu nedenle
 * her tema için ayrı yerel değişkenlerle tanımlanır ve .topbar kapsamında yazılır. */
.topbar .lang-switch {
  --ls-text: rgba(247, 244, 238, 0.78);
  --ls-border: rgba(214, 174, 85, 0.34);
  --ls-hover: rgba(214, 174, 85, 0.12);
  --ls-active-bg: #d6ae55;
  --ls-active-text: #08080c;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ls-border);
  border-radius: 999px;
  flex: none;
}
html[data-theme="light"] .topbar .lang-switch {
  --ls-text: rgba(29, 26, 23, 0.8);
  --ls-border: rgba(140, 106, 35, 0.4);
  --ls-hover: rgba(140, 106, 35, 0.1);
  --ls-active-bg: #6f5319;
  --ls-active-text: #f7f4ee;
}
.topbar .lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ls-text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.topbar .lang-switch a:hover {
  background: var(--ls-hover);
}
.topbar .lang-switch a:focus-visible {
  outline: 2px solid var(--ls-active-bg);
  outline-offset: 2px;
}
.topbar .lang-switch a.is-active,
.topbar .lang-switch a[aria-current="true"] {
  background: var(--ls-active-bg);
  color: var(--ls-active-text);
}
@media (max-width: 760px) {
  .topbar .lang-switch a {
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    font-size: 10px;
  }
}

/* Başlık çubuğu: Almanca ve Rusça etiketler uzun olduğundan satır kırmasın. */
.topbar .nav-link,
.topbar .nav-cta,
.topbar .sound-toggle {
  white-space: nowrap;
}
@media (min-width: 981px) and (max-width: 1440px) {
  .topbar .nav {
    gap: 16px;
    font-size: 12.5px;
  }
}
@media (min-width: 981px) and (max-width: 1320px) {
  .topbar #soundToggleText {
    display: none;
  }
}
