/* Regras gerais (mantidas para consistência, mas ajustadas dentro da media query para mobile) */
.redes-sociais {
  width: 80%;
  margin: 5px auto;
  background-color: #2a1a3d;
  padding: 15px;
  border: 2px solid #d4af37;
  border-radius: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  background-color: #d4af37;
  color: #2a1a3d;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
}

.social-btn:hover {
  background-color: #c19f2f;
}

.social-btn i {
  font-size: 18px;
}

/* Media query para dispositivos móveis (max-width: 768px) */
@media only screen and (max-width: 768px) {
  /* Ajusta todos os containers incluídos para 90% da largura */
  .redes-sociais,
  .botoes-container,
  .discord-container {
    width: 90%;
    margin: 5px auto;
  }

  /* Garante que topo e rodapé ocupem 100% */
  .topo,
  footer {
    width: 100%;
    margin: 0;
  }

  /* Reorganiza o layout do topo para mobile */
  .topo {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  /* Ajusta topo-esquerdo para posicionar texto à esquerda e botão à direita */
  .topo-esquerdo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px; /* Espaço entre topo-esquerdo e bandeiras */
  }

  /* Mantém o texto à esquerda */
  .topo-esquerdo .leet-text,
  .topo-esquerdo .destinos-text {
    flex-shrink: 0;
  }

  /* Ajusta o botão de login */
  .topo-esquerdo .login-btn {
    margin-left: auto;
  }

  /* Ajusta topo-direito e bandeiras para ocupar 100% da largura */
  .topo-direito {
    width: 100%;
  }

  .bandeiras-container {
    width: 100%;
    display: flex;
    justify-content: space-evenly; /* Distribui bandeiras uniformemente */
    flex-wrap: wrap; /* Permite quebra de linha se necessário */
    gap: 5px;
  }

  /* Ajusta os botões de redes sociais */
  .redes-sociais .social-btn {
    box-sizing: border-box;
    justify-content: center;
  }

  /* Ajusta os botões do botoes-container para empilhamento vertical */
  .botoes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Garante que cada botão ocupe a largura total do container */
  .botoes-container .botao {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    text-align: center;
    justify-content: center;
  }
}