/* Rapadura Atômica — Seletor de idioma (dropdown) */

.lang-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  user-select: none;
}

.lang-switcher .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  margin: 0;
  padding: 0.5em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.65);
  color: #ffffff;
  font-size: 0.8em;
  letter-spacing: 0.05em;
  line-height: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-switcher .lang-current:hover {
  background: rgba(40, 40, 60, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-switcher .lang-globe {
  font-size: 1.1em;
}

.lang-switcher .lang-caret {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-caret {
  transform: rotate(180deg);
}

.lang-switcher .lang-menu {
  list-style: none;
  margin: 0.4em 0 0 0;
  padding: 0.3em 0;
  min-width: 100%;
  border-radius: 12px;
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-switcher .lang-menu li {
  margin: 0;
  padding: 0;
}

.lang-switcher .lang-menu a {
  display: block;
  padding: 0.55em 1.1em;
  color: #e8e8ee;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher .lang-menu a:hover {
  background: rgba(110, 225, 88, 0.18);
  color: #ffffff;
}

.lang-switcher .lang-menu a.is-active {
  color: #6ee158;
  font-weight: 700;
}

.lang-switcher .lang-menu a.is-active::after {
  content: " ✓";
}

@media screen and (max-width: 736px) {
  .lang-switcher {
    top: 14px;
    left: 14px;
  }
  .lang-switcher .lang-current {
    font-size: 0.75em;
    padding: 0.45em 0.75em;
  }
}
