/* =========================================================
   events-smooth.css — load AFTER events-theme.css
   Smoothness + clickable football card. Look & theme unchanged.
========================================================= */

/* ---------- Smoother scrolling & rendering ---------- */
html { scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; }

/* Fixes the jump on phones when the address bar hides/shows */
.events-hero { min-height: 100vh; min-height: 100svh; }

/* Gentle one-time entrance for the hero */
.hero-composition { animation: heroIn 1.1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Scroll bar: moves on the GPU (scaleX) instead of re-laying out (width) */
.scroll-progress {
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: none;
  will-change: transform;
}

/* Glow orbs: the radial gradient is already soft, so the heavy 80px blur
   (very slow while scrolling) is removed. Parallax uses `translate`,
   so it no longer fights the floating animation. */
.ambient-glow { filter: none; will-change: transform, translate; }

/* Smoother reveal */
.reveal { transition-duration: .9s; will-change: opacity, transform; }

/* ---------- Stacking cards ---------- */
/* `scale` is driven by JS as cards stack; hover uses `transform`, so they don't clash */
.event-card { will-change: scale; }

/* ---------- Clickable football card ---------- */
a.event-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.event-card:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
}
a.event-card:active {
  transform: translateY(0) scale(.99);
  transition-duration: .15s;
}

/* Button inside the card (now a visual button; the whole card is the link) */
.event-details-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .6rem;
  margin-top: 26px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-family: "Inter", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.event-details-button svg {
  width: 16px; height: 16px;
  transition: transform .3s ease;
}
.event-card:hover .event-details-button {
  background: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.event-card:hover .event-details-button svg { transform: translateX(4px); }

/* Touch screens: no "stuck" hover state after a tap */
@media (hover: none) {
  .event-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: var(--border-card);
  }
  .event-card:hover .event-image img {
    transform: none;
    opacity: .75;
    filter: saturate(.85) contrast(1.05);
  }
  .event-card:hover .event-details-button { transform: none; box-shadow: none; }
  .event-card:hover .event-details-button svg { transform: none; }
}

@media (max-width: 600px) {
  .event-details-button { align-self: center; margin-top: 20px; }
}