/* Three-language flag switcher. Loaded after style.css so legacy .lang-link rules are safely overridden. */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher .lang-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  margin: 0;
  padding: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  line-height: 1;
  text-decoration: none;
  opacity: 0.64;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.language-switcher .lang-link:hover,
.language-switcher .lang-link:focus-visible {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.language-switcher .lang-link.is-active {
  opacity: 1;
  border-color: #f3a35c;
  background: rgba(243, 163, 92, 0.18);
  box-shadow: 0 0 0 1px rgba(243, 163, 92, 0.12);
  cursor: default;
}

.language-switcher .lang-link img {
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1100px) {
  .nav-cta .language-switcher {
    align-self: flex-start;
    margin-top: 4px;
  }

  .language-switcher .lang-link {
    width: 40px;
    height: 32px;
  }

  .language-switcher .lang-link img {
    width: 30px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher .lang-link {
    transition: none;
  }
}
