/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 30% 20%,
      rgba(230, 57, 70, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 70%,
      rgba(69, 123, 255, 0.05) 0%,
      transparent 50%
    );
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0.4; /* subtle transparency */
}

/**
 * Slow drift from bottom to top.
 * Negative delays ensure continuous motion.
 */
@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.8);
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.8);
    opacity: 0.3;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 24px;
}
.hero-subtitle {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-main-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--accent-red) 40%,
    var(--accent-purple) 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero-tagline {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}
.hero-description {
  margin: 20px auto 30px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ==================== FEATURED TOURNAMENTS ==================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.tournament-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.tournament-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 0 0 var(--radius-lg) 0;
}
.tournament-card:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow-red);
  transform: translateY(-3px);
}
.tournament-card .game-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tournament-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tournament-card .prize-pool {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin: 8px 0;
}
.tournament-card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-open {
  background: rgba(6, 214, 160, 0.15);
  color: var(--accent-cyan);
}
.status-closing {
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent-gold);
}
.status-closed {
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent-red);
}

/* ==================== SUPPORTED GAMES ==================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: default;
}
.game-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-3px);
}
.game-card .game-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card .game-img img {
  width: 100%;
  height: auto;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}
.game-card h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ==================== RECENT CHAMPIONS / NEWS ==================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.news-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(244, 162, 97, 0.2);
  transform: translateY(-3px);
}
.news-card .news-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-card .winner-icon {
  width: 40px;
  height: 40px;
}
.news-card .news-body {
  padding: 16px 20px 20px;
}
.news-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}
.news-card .winner-name {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
}
.news-card .event-name {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==================== CTA SECTION ==================== */
section#cta.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #06060c 0%, #15112e 50%, #06060c 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  box-shadow: inset 0 0 100px rgba(139, 92, 246, 0.12);
  overflow: hidden;
}
section#cta.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-blue);
  opacity: 0.6;
}
.cta-content {
  max-width: 600px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ==================== SHARED SECTION HEADINGS ==================== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  font-weight: 400;
}
.title-accent {
  color: var(--accent-red);
  margin-right: 6px;
}
.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
