/**
 * SPOTD platform v2 — design tokens, homepage hero, cards, grids (dark gaming).
 */
:root {
  --spotd-v2-radius: 14px;
  --spotd-v2-radius-sm: 10px;
  --spotd-v2-space-1: 0.35rem;
  --spotd-v2-space-2: 0.65rem;
  --spotd-v2-space-3: 1rem;
  --spotd-v2-glow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 12px 40px rgba(79, 70, 229, 0.18);
  --spotd-v2-glow-hover: 0 0 0 1px rgba(167, 139, 250, 0.45), 0 18px 48px rgba(99, 102, 241, 0.28);
  --spotd-v2-accent: #a78bfa;
  --spotd-v2-accent-2: #6366f1;
}

/* --- Hero : gradient animé léger sur overlay --- */
.spotd-home-hero--animated .hero-banner-overlay-advanced,
.spotd-home-hero--animated .spotd-home-hero__overlay {
  background: linear-gradient(
    120deg,
    rgba(8, 8, 12, 0.75) 0%,
    rgba(30, 27, 60, 0.55) 40%,
    rgba(79, 70, 229, 0.25) 70%,
    rgba(8, 8, 12, 0.82) 100%
  );
  background-size: 200% 200%;
  animation: spotd-hero-grad 14s ease-in-out infinite alternate;
}

@keyframes spotd-hero-grad {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

/* --- CTA hero --- */
.spotd-cta {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.spotd-cta--primary {
  background: linear-gradient(135deg, var(--spotd-v2-accent-2), #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: var(--spotd-v2-glow);
}
.spotd-cta--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--spotd-v2-glow-hover);
}
.spotd-cta--secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8eaed;
}
.spotd-cta--secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.spotd-home-hero-live {
  margin-top: 0.25rem;
}
.spotd-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 234, 237, 0.95);
}
.spotd-live-pill--amber {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.spotd-live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: spotd-pulse 2s ease-in-out infinite;
}
@keyframes spotd-pulse {
  50% {
    opacity: 0.65;
  }
}

/* --- Sections titres --- */
.spotd-home-section__title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f4f5;
}
.spotd-home-section__lead {
  max-width: 42rem;
}

/* --- Activity strip --- */
.spotd-activity-metric__value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.spotd-activity-metric__label {
  opacity: 0.85;
}

/* --- Cards v2 (lift + glow) --- */
.spotd-card-v2 {
  border-radius: var(--spotd-v2-radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.spotd-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--spotd-v2-glow-hover);
}
.spotd-card-v2--game:hover {
  filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.35));
}
.spotd-card-v2--fastmatch {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.spotd-card-v2--fastmatch:hover {
  border-color: rgba(129, 140, 248, 0.45) !important;
}
.spotd-card-v2--tournament {
  display: block;
  text-decoration: none;
  color: inherit;
}
.spotd-card-v2--tournament:hover {
  color: inherit;
}

.spotd-home-fastmatch-strip {
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.4) 0%, rgba(10, 10, 14, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- FastMatch listing grid --- */
.fastmatch-grid-v2 .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}
@media (min-width: 1200px) {
  .fastmatch-grid-v2 .row-cols-xl-3 > * {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

/* --- Typo hiérarchie cartes FastMatch --- */
.fastmatch-card.spotd-card-v2 .fastmatch-card__game {
  font-size: 1.05rem;
}
.fastmatch-card.spotd-card-v2 h2.h6 {
  font-size: 1.05rem;
  font-weight: 700;
}

/* --- Détail onglets (lisibilité) --- */
.fastmatch-detail-tabs .nav-link {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}
.fastmatch-detail-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(79, 70, 229, 0.25));
  border: 1px solid rgba(129, 140, 248, 0.45);
}

/* --- Badges tournoi --- */
.spotd-badge-hot {
  animation: spotd-hot-glow 2.4s ease-in-out infinite alternate;
}
@keyframes spotd-hot-glow {
  from {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
  }
  to {
    box-shadow: 0 0 16px 2px rgba(239, 68, 68, 0.25);
  }
}

@media (max-width: 575.98px) {
  .spotd-cta {
    width: 100%;
    justify-content: center;
  }
  .spotd-home-hero-actions .d-flex.flex-wrap.gap-2 {
    flex-direction: column;
  }
}
