/* ==========================================================================
   FootballIQ — Animation Stylesheet
   Fade / slide reveals, hover glows, staggered card entrances.
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero__panel { animation: floatSlow 6s ease-in-out infinite; }

/* Staggered reveal delays for card grids — JS adds .reveal + nth timing */
.grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2) { transition-delay: 70ms; }
.grid > .reveal:nth-child(3) { transition-delay: 140ms; }
.grid > .reveal:nth-child(4) { transition-delay: 210ms; }
.grid > .reveal:nth-child(5) { transition-delay: 280ms; }
.grid > .reveal:nth-child(6) { transition-delay: 350ms; }
.grid > .reveal:nth-child(7) { transition-delay: 420ms; }
.grid > .reveal:nth-child(8) { transition-delay: 490ms; }

/* Glow hover used on primary interactive cards */
.glow-hover {
  transition: box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.glow-hover:hover {
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.2), 0 16px 44px -18px rgba(0, 200, 255, 0.35);
}

/* Skeleton loading shimmer for async data (live scores, predictions) */
.skeleton {
  background: linear-gradient(90deg, rgba(13,40,56,0.06) 25%, rgba(13,40,56,0.12) 37%, rgba(13,40,56,0.06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero__panel { animation: none; }
  .skeleton { animation: none; background: rgba(13,40,56,0.08); }
}
