/* styles.css */

/* 🎨 Paleta de colores más vibrante y elegante */
:root {
  --color-bg: #0a0a23;
  --color-bg-card: #161638;
  --color-primary: #3b82f6;
  --color-secondary: #f472b6;
  --color-accent: #22d3ee;
  --color-text: #ffffff;
  --color-muted: #cbd5e1;
  --color-table-head: #334155;
  --color-table-row: #1e293b;

  --font-main: 'Poppins', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
}

/* 🧼 Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding: 0 1rem;
}

main {
  max-width: 1200px;
  margin: auto;
}

/* 🔝 Header */
header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(90deg, #3b82f6, #f472b6);
  color: white;
}

header h1 {
  font-size: 3rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav a::after {
  content: '';
  height: 2px;
  width: 0%;
  background: white;
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* 🧭 Secciones */
section {
  background-color: var(--color-bg-card);
  padding: 30px;
  margin: 40px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

/* 🎯 Botones animados */
button {
  display: block;
  margin: 20px auto;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 10px var(--color-secondary);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--color-accent);
}

/* ✅ TABLA estilo Excel */
.token-table-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.token-table {
  flex: 1;
  min-width: 300px;
  background-color: var(--color-table-row);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-table-head);
}

.token-table table {
  width: 100%;
  border-collapse: collapse;
}

.token-table th,
.token-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-table-head);
  font-size: 1rem;
}

.token-table th {
  background-color: var(--color-table-head);
  color: var(--color-accent);
  text-transform: uppercase;
}

.token-table td {
  background-color: var(--color-table-row);
  color: var(--color-muted);
}

/* 📈 DEXTools iframe al lado */
.iframe-container {
  flex: 1;
  min-width: 320px;
}

.iframe-container iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow);
}

/* 🔄 Responsive ajuste */
@media (max-width: 768px) {
  .token-table-wrapper {
    flex-direction: column;
  }

  button {
    width: 100%;
    max-width: 300px;
  }
}

/* 🔄 ESTILO RESTAURADO PARA "Compromiso Comunitario" EN ADELANTE */

/* 🧩 Grid Comunidad */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* 🧾 Tarjetas */
.community-card {
  background-color: #272448;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* 🏆 Leaderboard */
.leaderboard-item,
.news-item,
.reward-item,
.event-item {
  background-color: #1e1c38;
  padding: 15px;
  margin-bottom: 10px;
  border-left: 4px solid var(--color-secondary);
  border-radius: 10px;
}

.leaderboard-rank {
  font-weight: bold;
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-right: 10px;
}

.leaderboard-info {
  display: flex;
  flex-direction: column;
}

.reward-action {
  margin-top: 10px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.reward-action:hover {
  background-color: var(--color-secondary);
}

/* ❓ FAQ */
#faq .faq-item h3 {
  color: var(--color-accent);
  margin-bottom: 10px;
}

#faq .faq-item p {
  color: var(--color-muted);
  margin-bottom: 20px;
}

/* 📱 Redes Sociales */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--color-secondary);
  color: #000;
}

.community-links {
  display: flex;
  flex-direction: row; /* ✅ Alinea en fila */
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap; /* ✅ Si se achica la pantalla, se adapta */
  justify-content: center;
}


.community-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f1c2c, #302b63, #24243e);
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.community-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.community-link i {
  font-size: 1.5rem;
}

.community-link span {
  font-weight: bold;
  color: #00ffff;
}

/* Individual platform color highlights */
.community-link.twitch:hover {
  background: linear-gradient(135deg, #6441a5, #2a0845);
}

.community-link.whatsapp:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.community-link.telegram:hover {
  background: linear-gradient(135deg, #0088cc, #004466);
}

/* Inputs y select */
#verificacion-form input[type="text"],
#verificacion-form select,
#verificacion-form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #2a254b;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

#verificacion-form input:focus,
#verificacion-form select:focus {
    border-color: #00d9ff;
    outline: none;
    background-color: #322c5a;
}

/* Botón de envío */
#verificacion-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #ff00cc, #3333ff);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

#verificacion-form button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px #00d9ff;
}

/* Responsive */
@media (max-width: 480px) {
    #verificacion-form {
        padding: 20px 15px;
    }

    #verificacion-form h2 {
        font-size: 1.4rem;
    }
}
