/* ==========================================================================
   FINDIO — design tokens
   Concept: a market-ticker / trading-terminal for game price drops.
   Discounts are treated like stock moves — green = price fell (good),
   gold = the call-to-action, red = urgency (ending soon).
   ========================================================================== */

:root {
  --bg: #0E1119;
  --bg-raised: #171B26;
  --bg-raised-2: #1F2433;
  --line: #2A3040;
  --text: #ECEAE3;
  --text-muted: #8B92A5;
  --text-dim: #5B6274;

  --gold: #F2B705;
  --gold-dim: #B98C08;
  --green: #35D48C;
  --red: #FF5C5C;
  --blue: #5AA9E6;

  --font-display: 'Space Mono', 'Courier New', monospace;
  --font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 3px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(90, 169, 230, 0.06), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(242, 183, 5, 0.05), transparent 40%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--gold); color: #10131A; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   NAV
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* ==========================================================================
   TICKER — signature element
   ========================================================================== */

.ticker-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-strip::before,
.ticker-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.ticker-strip::before { left: 0; background: linear-gradient(90deg, var(--bg-raised), transparent); }
.ticker-strip::after { right: 0; background: linear-gradient(270deg, var(--bg-raised), transparent); }

.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 10px 0;
  animation: scroll-ticker 38s linear infinite;
}

.ticker-strip:hover .ticker-track { animation-play-state: paused; }

@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ticker-item .name { color: var(--text); }
.ticker-item .delta { color: var(--green); font-weight: 700; }
.ticker-item .delta.urgent { color: var(--red); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "▲";
  font-size: 0.7rem;
}

h1.headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h1.headline .accent { color: var(--gold); }

.hero p.lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #17130A;
}
.btn-primary:hover { background: #ffc71f; }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-dim); }

/* Radar panel graphic */
.radar-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}

.radar-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.radar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}
.radar-row:last-child { border-bottom: none; }

.radar-row .game { color: var(--text); }
.radar-row .store-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-display);
}
.radar-row .move { font-family: var(--font-display); color: var(--green); font-weight: 700; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.section-head .sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-head .view-all { font-size: 0.88rem; color: var(--blue); white-space: nowrap; }
.section-head .view-all:hover { text-decoration: underline; }

/* ==========================================================================
   DEAL CARDS — "trade ticket" styling
   ========================================================================== */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 18px;
}

.deal-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.deal-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.deal-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-raised-2);
  position: relative;
  overflow: hidden;
}

.deal-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green);
  color: #0A2016;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 3px;
}

.badge-store {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 17, 25, 0.85);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.deal-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.deal-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.deal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 10px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
  font-family: var(--font-display);
}

.price-now { font-size: 1.2rem; color: var(--gold); font-weight: 700; }
.price-was { font-size: 0.86rem; color: var(--text-dim); text-decoration: line-through; }

.deal-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

.stub-line {
  border-top: 1px dashed var(--line);
  margin: 2px 0 0;
  position: relative;
}
.stub-line::before, .stub-line::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 12px; height: 12px;
  background: var(--bg);
  border-radius: 50%;
}
.stub-line::before { left: -22px; }
.stub-line::after { right: -22px; }

/* ==========================================================================
   FILTER BAR (deals.html)
   ========================================================================== */

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 28px;
}

.filter-bar input[type="search"],
.filter-bar select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.filter-bar input[type="search"] { flex: 1; min-width: 180px; }

.filter-count {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  margin-left: auto;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   HOW IT WORKS / STRIP
   ========================================================================== */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}

.how-card .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.how-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.how-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   DISCLOSURE STRIP
   ========================================================================== */

.disclosure-strip {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.disclosure-strip a { color: var(--blue); }
.disclosure-strip a:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 40px 0 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text-muted); }

/* ==========================================================================
   MISC PAGES (about / disclosure)
   ========================================================================== */

.prose {
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 1rem;
}
.prose h1 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 2rem;
  margin-bottom: 8px;
}
.prose h2 {
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 32px;
}
.prose p { line-height: 1.7; }
.prose ul { line-height: 1.8; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 48px 0; }
  .section { padding: 40px 0; }
}
