/* ============================================================
   Language Switcher Styles
   ============================================================ */

.lang-switcher {
  position: relative;
  display: inline-flex;
  z-index: 100;
}

.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grafite, #444);
  cursor: pointer;
  transition: color 200ms, background 200ms;
  font-family: inherit;
  line-height: 1;
}
.ls-btn:hover {
  color: var(--grafite, #444);
  background: rgba(0,0,0,0.04);
}

.ls-globe {
  flex-shrink: 0;
}

.ls-label {
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.ls-chevron {
  flex-shrink: 0;
  opacity: 0.5;
}

.ls-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--cinza-borda, #e0e0e0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  overflow: hidden;
  min-width: 140px;
  animation: ls-fade-in 150ms ease;
}

@keyframes ls-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ls-option {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grafite, #333);
  text-decoration: none;
  transition: background 150ms;
}
.ls-option:hover {
  background: var(--cinza-claro, #f5f6f7);
}

.ls-option-active {
  color: var(--azul-renlight, #0585B6);
  font-weight: 600;
  pointer-events: none;
}
.ls-option-active::before {
  content: '✓ ';
  font-size: 12px;
}

/* Header variant — match nav color */
.rl-header .ls-btn {
  color: var(--grafite, #444);
  border: none;
}
.rl-header .ls-btn:hover {
  color: var(--grafite, #444);
  background: rgba(0,0,0,0.04);
}

/* Mobile menu variant */
.rl-mobile-menu .lang-switcher .ls-btn {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}
.rl-mobile-menu .lang-switcher .ls-btn:hover {
  border-color: rgba(255,255,255,0.5);
}
.rl-mobile-menu .ls-dropdown {
  position: static;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  margin-top: 8px;
}
.rl-mobile-menu .ls-option {
  color: rgba(255,255,255,0.8);
}
.rl-mobile-menu .ls-option:hover {
  background: rgba(255,255,255,0.08);
}
.rl-mobile-menu .ls-option-active {
  color: #fff;
}

/* Group globe + CTA together and push them to the right edge of the header */
.rl-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Center the nav perfectly in the header on desktop */
@media (min-width: 801px) {
  .rl-header-inner .rl-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

/* Wrapper do globo dentro do menu mobile */
.rl-mobile-menu .lang-switcher-wrapper {
  padding: 8px 12px 4px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .ls-dropdown {
    min-width: 120px;
  }
}

/* Mobile: globe closer to burger */
@media (max-width: 800px) {
  .rl-header-actions {
    margin-right: -14px;
  }
}
