/* events/polish.css — entrance + interaction animations for /events
 * Presentation-only. Scoped to html[data-route="/events"].
 * Reduced-motion fallbacks included.
 * E1 final / polish/e1-final-routes 2026-06-09
 */

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes ev-fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ev-scale-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ev-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Entrance ─────────────────────────────────────────────── */
html[data-route="/events"] .page-header {
  animation: ev-fade-rise .4s .05s ease both;
}
html[data-route="/events"] .events-filter-row {
  animation: ev-fade-rise .38s .1s ease both;
}
html[data-route="/events"] #events-grid-wrap {
  animation: ev-fade-rise .4s .16s ease both;
}

/* ── Filter button hover / active / focus-visible ─────────── */
html[data-route="/events"] .ev-filter-btn {
  transition: transform .14s ease, border-color .15s ease, color .15s ease;
}
html[data-route="/events"] .ev-filter-btn:hover {
  transform: translateY(-1px);
}
html[data-route="/events"] .ev-filter-btn:active {
  transform: translateY(0);
}
html[data-route="/events"] .ev-filter-btn:focus-visible {
  outline: 2px solid var(--gold-accent, var(--accent,#FF2D2D));
  outline-offset: 3px;
}

/* ── Event card hover ─────────────────────────────────────── */
html[data-route="/events"] .ev-card,
html[data-route="/events"] .event-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html[data-route="/events"] .ev-card:hover,
html[data-route="/events"] .event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  border-color: rgba(255,45,45, .25);
}

/* ── Skeleton shimmer ─────────────────────────────────────── */
html[data-route="/events"] .skel-row,
html[data-route="/events"] .ev-skel {
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: ev-shimmer 1.6s infinite;
}

/* ── Reduced-motion overrides ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-route="/events"] .page-header,
  html[data-route="/events"] .events-filter-row,
  html[data-route="/events"] #events-grid-wrap {
    animation: none;
    opacity: 1;
  }
  html[data-route="/events"] .skel-row,
  html[data-route="/events"] .ev-skel {
    animation: none;
  }
  html[data-route="/events"] .ev-filter-btn:hover,
  html[data-route="/events"] .ev-card:hover,
  html[data-route="/events"] .event-card:hover {
    transform: none;
  }
}
