/* Plain CSS language switcher used in shared header/landing */
.language-switcher {
  position: relative;
  display: inline-block;
  text-align: left;
}

.language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(25, 28, 52, 0.9);
  padding: 0.45rem 0.55rem;
  color: #d7ddf2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
}

.language-switcher__toggle:hover {
  background: rgba(33, 36, 66, 0.96);
  border-color: rgba(255, 255, 255, 0.24);
}

.language-switcher__toggle:focus-visible {
  outline: none;
  border-color: #8d84ff;
  box-shadow: 0 0 0 3px rgba(141, 132, 255, 0.28);
}

.language-switcher__flag-wrap {
  display: inline-flex;
  align-items: center;
}

.language-switcher__flag {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.language-switcher__chevron {
  width: 18px;
  height: 18px;
  color: #aeb6d9;
  transition: transform 0.2s ease;
}

.language-switcher__menu {
  position: absolute;
  right: 0;
  z-index: 50;
  margin-top: 0.5rem;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(24, 27, 50, 0.98);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.language-switcher:hover .language-switcher__menu,
.language-switcher:focus-within .language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-switcher:hover .language-switcher__chevron,
.language-switcher:focus-within .language-switcher__chevron {
  transform: rotate(180deg);
}

.language-switcher__menu-inner {
  padding: 0.35rem 0;
}

.language-switcher__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  color: #d6ddf2;
  text-decoration: none;
  font-size: 0.92rem;
}

.language-switcher__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher__item.is-active {
  background: rgba(108, 96, 198, 0.26);
  color: #f3f2ff;
}

.language-switcher__label {
  flex: 1 1 auto;
  font-weight: 600;
}

.language-switcher__check {
  width: 15px;
  height: 15px;
  color: #a9a1ff;
}
