/* =========================================================
   LANGUAGE SWITCHER + GEO SUGGESTION POPUP
   ========================================================= */

.header__menu {
  align-items: center;
  gap: 16px;
}

.lang-switch {
  position: relative;
  z-index: 6;
  font-family: var(--font-family-base, sans-serif);
}

.lang-switch__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 250, 250, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary, #fafafa);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color 0.3s ease-in-out,
    background 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.lang-switch__toggle:hover,
.lang-switch.is-open .lang-switch__toggle {
  border-color: var(--blue, #28d0e8);
  background: rgba(40, 208, 232, 0.12);
}

.lang-switch__globe {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lang-switch__caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.lang-switch.is-open .lang-switch__caret {
  transform: rotate(180deg);
}

.lang-switch__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #1e1f20;
  border: 1px solid rgba(250, 250, 250, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease-in-out,
    transform 0.25s ease-in-out,
    visibility 0.25s;
}

.lang-switch.is-open .lang-switch__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary, #fafafa);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s ease-in-out,
    color 0.25s ease-in-out;
}

.lang-switch__option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch__option.is-active {
  color: var(--blue, #28d0e8);
  background: rgba(40, 208, 232, 0.1);
}

.lang-switch__flag {
  font-size: 18px;
  line-height: 1;
}

/* ---------- GEO SUGGESTION POPUP ---------- */
.lang-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lang-popup.is-visible {
  opacity: 1;
}

.lang-popup__box {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px;
  border-radius: 16px;
  background: #1e1f20;
  border: 1px solid rgba(250, 250, 250, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateY(14px);
  transition: transform 0.3s ease-in-out;
}

.lang-popup.is-visible .lang-popup__box {
  transform: translateY(0);
}

.lang-popup__title {
  margin: 0 0 4px;
  font-family: var(--font-jost, sans-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #fafafa;
}

.lang-popup__title--sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.5);
}

.lang-popup__text {
  margin: 14px 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.78);
}

.lang-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-popup__btn {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    filter 0.3s ease-in-out,
    background 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.lang-popup__btn--yes {
  background: linear-gradient(90deg, #fddc8b 0%, #28d0e8 100%);
  color: #141414;
}

.lang-popup__btn--yes:hover {
  filter: brightness(1.08);
}

.lang-popup__btn--no {
  background: transparent;
  border: 1px solid rgba(250, 250, 250, 0.25);
  color: rgba(250, 250, 250, 0.8);
}

.lang-popup__btn--no:hover {
  border-color: #fafafa;
  color: #fafafa;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 745px) {
  .lang-switch__toggle {
    padding: 7px 11px;
    font-size: 13px;
    gap: 6px;
  }

  .lang-switch__globe {
    width: 16px;
    height: 16px;
  }

  .lang-switch__list {
    min-width: 165px;
  }

  .lang-popup__box {
    padding: 26px 20px;
  }

  .lang-popup__title {
    font-size: 20px;
  }
}
