/* Styles for the Racing Feeds home page (index.html).
   Most layout and colour sits inline on each element, exactly as designed.
   This file holds the shared basics and the interactive states. */

:root {
  --rf-bg: #0B0C10;
  --rf-card: #1C1E28;
  --rf-line: #3A3D4E;
  --rf-text: #F4F4F1;
  --rf-muted: #A9ABB6;
  --rf-accent: #9A9DFF;
  --rf-accent-hover: #C3C5FF;
  --rf-amber: #FFB547;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--rf-bg); }
img { max-width: 100%; }
a { color: var(--rf-accent); }
a:hover { color: var(--rf-accent-hover); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--rf-accent);
  outline-offset: 3px;
}
#main:focus { outline: none; }

/* Skip link for keyboard users */
.rf-skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--rf-text); color: var(--rf-bg); padding: 10px 16px; border-radius: 8px;
  font-family: Inter, system-ui, sans-serif; font-weight: 600; text-decoration: none;
}
.rf-skip:focus { top: 12px; color: var(--rf-bg); }

/* Hero: feed preview tabs */
.rf-tab {
  font: inherit; font-size: 14px; font-weight: 500; border: 0; border-radius: 8px;
  padding: 11px 14px; min-height: 44px; cursor: pointer;
  background: transparent; color: var(--rf-muted);
}
.rf-tab[aria-selected="true"] { background: var(--rf-line); color: var(--rf-text); }
.rf-panel[hidden] { display: none; }

/* Hero: live odds rows */
.rf-runner { border-top: 1px solid #2E3140; transition: background 0.4s; background: transparent; }
.rf-runner.is-down { background: rgba(154, 157, 255, 0.16); }
.rf-runner.is-up { background: rgba(255, 181, 71, 0.12); }
.rf-arrow { font-size: 11px; }
.rf-runner.is-down .rf-arrow { color: var(--rf-accent); }
.rf-runner.is-up .rf-arrow { color: var(--rf-amber); }

/* Pricing: build your racing stack */
.rf-pick {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 14px 18px;
  font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
  border-radius: 12px; color: var(--rf-text); background: var(--rf-card);
  border: 2px solid var(--rf-line);
}
.rf-pick[aria-pressed="true"] { border-color: var(--rf-accent); }
.rf-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; font-size: 14px; font-weight: 700;
  background: var(--rf-card); color: #FFFFFF; border: 2px solid #5A5C68;
}
.rf-pick[aria-pressed="true"] .rf-box { background: var(--rf-accent); color: var(--rf-bg); border-color: var(--rf-accent); }
.rf-note { margin: 0; font-size: 15px; font-weight: 500; color: var(--rf-muted); }
.rf-note.is-bundle { color: var(--rf-accent); }

/* Contact form */
.rf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contactForm input[aria-invalid="true"] { border-color: #FF8A8A; }
.rf-form-status { margin: 0; font-size: 15px; min-height: 1.5em; }
.rf-form-status.is-success { color: #8FE3B0; }
.rf-form-status.is-error { color: #FF9A9A; }
#contactForm button[disabled] { opacity: 0.7; cursor: wait; }
