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

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

/* ── Entrance ─────────────────────────────────────────────── */
html[data-route="/draft-strategy"] .page-header {
  animation: ds-fade-rise .4s .05s ease both;
}
html[data-route="/draft-strategy"] .tab-bar {
  animation: ds-fade-rise .38s .1s ease both;
}
html[data-route="/draft-strategy"] .tab-panel,
html[data-route="/draft-strategy"] #ds-adp-tab,
html[data-route="/draft-strategy"] #ds-scarcity-tab,
html[data-route="/draft-strategy"] #ds-vor-tab {
  animation: ds-fade-rise .4s .16s ease both;
}
html[data-route="/draft-strategy"] .card {
  animation: ds-scale-in .35s .2s ease both;
}

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

/* ── Table row hover ──────────────────────────────────────── */
html[data-route="/draft-strategy"] .ds-table tbody tr,
html[data-route="/draft-strategy"] table tbody tr {
  transition: background .14s ease;
}
html[data-route="/draft-strategy"] .ds-table tbody tr:hover,
html[data-route="/draft-strategy"] table tbody tr:hover {
  background: rgba(255, 255, 255, .04);
}

/* ── Player/tier card hover ───────────────────────────────── */
html[data-route="/draft-strategy"] .ds-tier-card,
html[data-route="/draft-strategy"] .ds-player-row {
  transition: background .14s ease, border-color .14s ease;
}
html[data-route="/draft-strategy"] .ds-tier-card:hover,
html[data-route="/draft-strategy"] .ds-player-row:hover {
  background: rgba(255, 255, 255, .04);
}

/* ── Skeleton shimmer ─────────────────────────────────────── */
html[data-route="/draft-strategy"] .skel-row,
html[data-route="/draft-strategy"] .ds-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: 4px;
  animation: ds-shimmer 1.6s infinite;
}

/* ── Reduced-motion overrides ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-route="/draft-strategy"] .page-header,
  html[data-route="/draft-strategy"] .tab-bar,
  html[data-route="/draft-strategy"] .tab-panel,
  html[data-route="/draft-strategy"] #ds-adp-tab,
  html[data-route="/draft-strategy"] #ds-scarcity-tab,
  html[data-route="/draft-strategy"] #ds-vor-tab,
  html[data-route="/draft-strategy"] .card {
    animation: none;
    opacity: 1;
  }
  html[data-route="/draft-strategy"] .skel-row,
  html[data-route="/draft-strategy"] .ds-skel {
    animation: none;
  }
  html[data-route="/draft-strategy"] .tab-btn:hover {
    transform: none;
  }
}

/* ── Q-EXP-3 (D-EXPCARD-0716 §3): quick-look affordance on player rows ──────
   Previously-inert ADP/scarcity/VOR rows now open the shared player
   quick-look (exp-card). Cursor + hover + keyboard focus affordance only. */
html[data-route="/draft-strategy"] .ql-row { cursor: pointer; }
html[data-route="/draft-strategy"] .ql-row:hover { background: rgba(255,255,255,.05); }
html[data-route="/draft-strategy"] .ql-row:focus-visible {
  outline: 2px solid var(--accent, #FF2D2D);
  outline-offset: -2px;
  border-radius: 8px;
}
