/* =============================================
   Slotshopper – Custom CSS
   Midnight-blue & neon-red arcade theme
   ============================================= */

:root {
  --midnight: #07102a;
  --midnight-mid: #0d1b3e;
  --midnight-light: #132352;
  --neon-red: #ff1a3a;
  --neon-red-glow: rgba(255,26,58,0.55);
  --gold: #ffd700;
  --gold-glow: rgba(255,215,0,0.45);
  --text-primary: #f0f4ff;
  --text-muted: #a0aec0;
  --panel-bg: #0f1d42;
  --panel-border: #1e3270;
  --font-base: 1rem;
}

* { box-sizing: border-box; }

body {
  background-color: var(--midnight);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: var(--font-base);
  line-height: 1.7;
  margin: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--neon-red); border-radius: 3px; }

/* ---- Glow keyframes ---- */
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 8px var(--neon-red-glow), 0 0 20px var(--neon-red-glow); }
  50% { box-shadow: 0 0 18px var(--neon-red-glow), 0 0 40px var(--neon-red-glow); }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow), 0 0 20px var(--gold-glow); }
  50% { box-shadow: 0 0 20px var(--gold-glow), 0 0 50px var(--gold-glow); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes floatCoin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes parallaxBg {
  0% { background-position: center 0%; }
  100% { background-position: center 30%; }
}

@keyframes reelSpin {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---- Utility glow classes ---- */
.glow-red { animation: neonPulse 2.2s ease-in-out infinite; }
.glow-gold { animation: goldPulse 2.6s ease-in-out infinite; }
.float-coin { animation: floatCoin 3s ease-in-out infinite; }
.reel-in { animation: reelSpin 0.5s ease-out forwards; }

/* ---- Marquee ---- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-outer { overflow: hidden; width: 100%; }

/* ---- CTA Buttons ---- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-red), #c8001e);
  color: #fff;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: 0.5em;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: neonPulse 2.4s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  padding: 0.82em 1.9em;
  border-radius: 0.5em;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: var(--gold); color: var(--midnight); transform: translateY(-2px); }

/* ---- Panel / Card ---- */
.slot-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.slot-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.015) 30px,
    rgba(255,255,255,0.015) 31px
  );
  pointer-events: none;
}

/* ---- Badge ---- */
.bonus-badge {
  background: linear-gradient(135deg, #1a2d6e, #0d1b3e);
  border: 2px solid var(--neon-red);
  border-radius: 1.25rem;
  animation: neonPulse 2.5s ease-in-out infinite;
  padding: 1.5rem 2rem;
  text-align: center;
}

/* ---- Step badge ---- */
.step-badge {
  width: 2.8rem;
  height: 2.8rem;
  min-width: 2.8rem;
  border-radius: 50%;
  background: var(--neon-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 12px var(--neon-red-glow);
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; width: 100%; max-width: 100%; }
table { border-collapse: collapse; width: 100%; max-width: 100%; }
th {
  background: var(--midnight-light);
  color: var(--gold);
  padding: 0.7em 1em;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--panel-border);
}
td {
  padding: 0.65em 1em;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-primary);
  background: var(--panel-bg);
}
tr:hover td { background: var(--midnight-light); }

/* ---- Prose (inner pages) ---- */
.prose { max-width: 72ch; margin: 0 auto; color: var(--text-primary); }
.prose h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold);
  margin: 2rem 0 0.8rem;
  border-left: 4px solid var(--neon-red);
  padding-left: 0.75rem;
  line-height: 1.3;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #c9d6ff;
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--neon-red); text-decoration: underline; }
.prose a:hover { color: var(--gold); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote {
  border-left: 4px solid var(--neon-red);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.2rem 0;
}
.prose img { max-width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; display: block; }
.prose table { max-width: 100%; }
.prose .table-wrap { overflow-x: auto; margin: 1.2rem 0; }

/* ---- Hero ---- */
.hero-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,42,0.78) 0%, rgba(7,16,42,0.92) 100%);
}

/* ---- Coin SVG decoration ---- */
.coin-accent {
  position: absolute;
  width: 4rem;
  height: 4rem;
  opacity: 0.18;
}

/* ---- Responsive nav ---- */
#mobile-menu { background: var(--midnight-mid); }

/* ---- Game card ---- */
.game-card img { width: 100%; height: 9rem; object-fit: cover; border-radius: 0.5rem 0.5rem 0 0; }
.game-card { min-width: 11rem; max-width: 13rem; flex-shrink: 0; }

/* ---- Word cloud ---- */
.word-cloud span {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  background: var(--midnight-light);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.word-cloud span:hover { background: var(--neon-red); color: #fff; }

/* ---- Disclaimer ---- */
.disclaimer { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.6rem; }

/* ---- Footer ---- */
footer { background: #04091c; border-top: 2px solid var(--panel-border); }

/* ---- Scrollable tables on mobile ---- */
@media (max-width: 640px) {
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .game-card { min-width: 9rem; }
}
