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

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes ht-fade-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ht-scale-in {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ht-trophy-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes ht-glow-pulse {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1; }
}
@keyframes ht-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Entrance: hero content ───────────────────────────────── */
html[data-route="/heisman"] .ht-hero-content {
  animation: ht-fade-rise .45s .05s ease both;
}
html[data-route="/heisman"] .ht-hero-trophy-wrap {
  animation: ht-scale-in .5s ease both;
}
html[data-route="/heisman"] .ht-trophy-photoreal {
  animation: ht-trophy-float 5s ease-in-out infinite;
}
html[data-route="/heisman"] .ht-trophy-glow {
  animation: ht-glow-pulse 3s ease-in-out infinite;
}

/* ── Staggered section entrances ─────────────────────────── */
html[data-route="/heisman"] .ht-frontrunner-section {
  animation: ht-fade-rise .4s .1s ease both;
}
html[data-route="/heisman"] .ht-race-section {
  animation: ht-fade-rise .4s .18s ease both;
}
html[data-route="/heisman"] .ht-ballot-section {
  animation: ht-fade-rise .4s .26s ease both;
}

/* ── Leader/player card hover ─────────────────────────────── */
html[data-route="/heisman"] .ht-leader,
html[data-route="/heisman"] .ht-candidate-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html[data-route="/heisman"] .ht-candidate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(199, 136, 74, .2);
  border-color: rgba(199, 136, 74, .5);
}

/* ── Ballot vote button ───────────────────────────────────── */
html[data-route="/heisman"] .ht-vote-btn,
html[data-route="/heisman"] .btn-vote,
html[data-route="/heisman"] .btn-submit-vote {
  transition: transform .14s ease, box-shadow .14s ease, background .18s ease;
}
html[data-route="/heisman"] .ht-vote-btn:hover,
html[data-route="/heisman"] .btn-vote:hover,
html[data-route="/heisman"] .btn-submit-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 136, 74, .3);
}
html[data-route="/heisman"] .ht-vote-btn:active,
html[data-route="/heisman"] .btn-vote:active,
html[data-route="/heisman"] .btn-submit-vote:active {
  transform: translateY(0);
}
html[data-route="/heisman"] .ht-vote-btn:focus-visible,
html[data-route="/heisman"] .btn-vote:focus-visible,
html[data-route="/heisman"] .btn-submit-vote:focus-visible {
  outline: 2px solid var(--hm-gold-bright, #F5D987);
  outline-offset: 3px;
}

/* ── Skeleton shimmer ─────────────────────────────────────── */
html[data-route="/heisman"] .ht-leader-skeleton .skel-row,
html[data-route="/heisman"] .ht-race-skeleton .skel-row {
  background: linear-gradient(90deg,
    rgba(199,136,74,.08) 25%,
    rgba(199,136,74,.18) 50%,
    rgba(199,136,74,.08) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: ht-shimmer 1.6s infinite;
}

/* ── Eyebrow badge entrance ───────────────────────────────── */
html[data-route="/heisman"] .ht-eyebrow-badge {
  animation: ht-scale-in .35s .08s ease both;
}

/* ── Reduced-motion overrides ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-route="/heisman"] .ht-hero-content,
  html[data-route="/heisman"] .ht-hero-trophy-wrap,
  html[data-route="/heisman"] .ht-frontrunner-section,
  html[data-route="/heisman"] .ht-race-section,
  html[data-route="/heisman"] .ht-ballot-section,
  html[data-route="/heisman"] .ht-eyebrow-badge {
    animation: none;
    opacity: 1;
  }
  html[data-route="/heisman"] .ht-trophy-photoreal,
  html[data-route="/heisman"] .ht-trophy-glow {
    animation: none;
  }
  html[data-route="/heisman"] .ht-candidate-card:hover {
    transform: none;
  }
  html[data-route="/heisman"] .ht-vote-btn:hover,
  html[data-route="/heisman"] .btn-vote:hover,
  html[data-route="/heisman"] .btn-submit-vote:hover {
    transform: none;
  }
}
