/* ================================================================
   LANG SWITCHER — BEM component
   Supports: header (desktop), mobile-nav panel
   ================================================================ */

.lang-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

/* ---- Base button / link ---- */
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  padding: var(--sp-1) var(--sp-2);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

/* Divider between UK and EN */
.lang-switcher__btn:first-child::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.25);
  margin-left: var(--sp-2);
  vertical-align: middle;
}

.lang-switcher__btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Active state ---- */
.lang-switcher__btn.is-active {
  color: var(--clr-gold);
}

.lang-switcher__btn.is-active:hover {
  color: var(--clr-gold-hover);
}

/* ================================================================
   MOBILE variant — inside mobile-nav__footer
   ================================================================ */

.lang-switcher--mobile {
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.lang-switcher--mobile .lang-switcher__btn {
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), border-color var(--duration-fast), background-color var(--duration-fast);
}

.lang-switcher--mobile .lang-switcher__btn:first-child::after {
  display: none;
}

.lang-switcher--mobile .lang-switcher__btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.lang-switcher--mobile .lang-switcher__btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lang-switcher--mobile .lang-switcher__btn:hover {
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-switcher--mobile .lang-switcher__btn.is-active {
  color: var(--clr-gold);
  border-color: var(--clr-gold);
  background-color: rgba(var(--clr-gold-rgb), 0.08);
}

.lang-switcher--mobile .lang-switcher__btn.is-active:hover {
  color: var(--clr-gold-hover);
  border-color: var(--clr-gold-hover);
}

/* ================================================================
   Touch devices — increase tap target for iOS Safari
   ================================================================ */

@media (hover: none) and (pointer: coarse) {
  .lang-switcher__btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2) var(--sp-3);
  }

  .lang-switcher__btn:first-child::after {
    display: none;
  }

  .lang-switcher--mobile .lang-switcher__btn {
    min-height: 44px;
    padding: var(--sp-2) var(--sp-5);
  }
}
