/* Seletor de Idiomas Flutuante */
.language-selector {
  position: fixed;
  top: 120px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(15,17,22,0.95));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  transform: translateX(calc(100% - 50px));
  overflow: hidden;
}

.language-selector:hover {
  transform: translateX(0);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.language-selector::before {
  content: "🌍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  z-index: 2;
}

.language-selector .languages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 40px;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-300);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 120px;
}

.language-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-100);
  transform: translateX(4px);
}

.language-btn.active {
  background: rgba(241,96,28,0.2);
  color: var(--accent);
  border: 1px solid rgba(241,96,28,0.3);
}

.language-btn .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}

.language-btn[data-lang="pt-BR"] .flag {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect fill="%23009c3b" width="900" height="600"/><rect fill="%23ffdf00" width="900" height="400"/><circle fill="%23002166" cx="450" cy="300" r="100"/></svg>');
}

.language-btn[data-lang="en"] .flag {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect fill="%23012169" width="900" height="600"/><rect fill="%23ffffff" width="900" height="46"/><rect fill="%23ffffff" width="900" height="46" y="92"/><rect fill="%23ffffff" width="900" height="46" y="184"/><rect fill="%23ffffff" width="900" height="46" y="276"/><rect fill="%23ffffff" width="900" height="46" y="368"/><rect fill="%23ffffff" width="900" height="46" y="460"/><rect fill="%23ffffff" width="900" height="46" y="552"/><rect fill="%23b22234" width="400" height="600"/></svg>');
}

.language-btn[data-lang="es"] .flag {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect fill="%23c60c30" width="900" height="600"/><rect fill="%23ffc400" width="900" height="300" y="150"/></svg>');
}

.language-btn .lang-name {
  font-weight: 600;
}

.language-btn .lang-native {
  font-size: 12px;
  opacity: 0.7;
}

/* Animação de entrada */
.language-selector {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(calc(100% - 50px));
    opacity: 1;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .language-selector {
    top: 100px;
    right: 10px;
    transform: translateX(calc(100% - 40px));
  }
  
  .language-selector:hover {
    transform: translateX(0);
  }
  
  .language-btn {
    min-width: 100px;
    font-size: 13px;
  }
}

/* Modo escuro sempre ativo */
.language-selector {
  background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(15,17,22,0.98));
}

/* Efeito de brilho */
.language-selector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,96,28,0.5), transparent);
  opacity: 0.6;
}

/* Hover no container */
.language-selector:hover::after {
  opacity: 1;
}

/* Transições suaves */
.language-selector,
.language-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado ativo melhorado */
.language-btn.active {
  background: linear-gradient(135deg, rgba(241,96,28,0.2), rgba(241,96,28,0.1));
  box-shadow: 0 4px 12px rgba(241,96,28,0.2);
}

/* Efeito de pressão */
.language-btn:active {
  transform: translateX(4px) scale(0.98);
}

/* Indicador de idioma atual */
.language-selector .current-indicator {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.8;
} 