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

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

/* ── Entrance ─────────────────────────────────────────────── */
html[data-route="/scout"] .page-header {
  animation: sc-fade-rise .4s .05s ease both;
}
html[data-route="/scout"] .card {
  animation: sc-scale-in .4s .1s ease both;
}
html[data-route="/scout"] .scout-bar {
  animation: sc-fade-rise .35s .15s ease both;
}
html[data-route="/scout"] .scout-table-wrap {
  animation: sc-fade-rise .4s .2s ease both;
}

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

/* ── Input / select focus ─────────────────────────────────── */
html[data-route="/scout"] .scout-input:focus-visible,
html[data-route="/scout"] .scout-select:focus-visible {
  outline: 2px solid var(--gold-accent, var(--accent,#FF2D2D));
  outline-offset: 2px;
}

/* ── Action button hover / focus-visible ─────────────────── */
html[data-route="/scout"] .press-btn,
html[data-route="/scout"] .btn {
  transition: transform .14s ease, box-shadow .14s ease;
}
html[data-route="/scout"] .press-btn:hover,
html[data-route="/scout"] .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(255, 26, 26, .22);
}
html[data-route="/scout"] .press-btn:active,
html[data-route="/scout"] .btn:active {
  transform: translateY(0);
}
html[data-route="/scout"] .press-btn:focus-visible,
html[data-route="/scout"] .btn:focus-visible {
  outline: 2px solid var(--gold-accent, var(--accent,#FF2D2D));
  outline-offset: 3px;
}

/* ── Skeleton shimmer ─────────────────────────────────────── */
html[data-route="/scout"] .skel-row,
html[data-route="/scout"] .scout-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: sc-shimmer 1.6s infinite;
}

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