/* =============================================================
   MegaFishWins Casino — Custom CSS
   Theme: Stahl Catch (Graphite + Electric Blue)
   ============================================================= */

/* ── Base Reset & HTML ──────────────────────────────────────── */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0d1117;
  color: #c9d1d9;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Typography ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Prose Casino (single pages + review blocks) ────────────── */
.prose-casino {
  color: #8b949e;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #c9d1d9;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; color: #58a6ff; }
.prose-casino h3 { font-size: 1.3rem; color: #e3b341; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1em;
  color: #8b949e;
}

.prose-casino a {
  color: #388bfd;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #58a6ff;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
}

.prose-casino ul {
  list-style-type: disc;
}

.prose-casino ol {
  list-style-type: decimal;
}

.prose-casino li {
  margin-bottom: 0.4em;
  color: #8b949e;
}

.prose-casino strong {
  color: #c9d1d9;
  font-weight: 700;
}

.prose-casino em {
  color: #8b949e;
  font-style: italic;
}

/* ── Single Page Content ────────────────────────────────────── */
.page-content > h1:first-child {
  margin-top: 0;
  font-size: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #21262d;
  margin-bottom: 1.5rem;
}

.prose-casino blockquote {
  border-left: 4px solid #1f6feb;
  padding: 0.5em 1em;
  background: #1c2330;
  margin: 1.5em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #8b949e;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #21262d;
  margin: 2em 0;
}

.prose-casino code {
  background: #1c2330;
  border: 1px solid #21262d;
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.875em;
  color: #58a6ff;
}

.prose-casino pre {
  background: #1c2330;
  border: 1px solid #21262d;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ── Table Scroll Utility ───────────────────────────────────── */
.prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 0.5rem;
}

.prose-table-scroll table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.prose-table-scroll--wide table {
  min-width: 40rem;
}

.prose-table-scroll th,
.prose-table-scroll td {
  white-space: nowrap;
}

.prose-casino .prose-table-scroll {
  margin: 1.5em 0;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* Global overflow-x-auto wrapper helper */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* ── Prose Table Styling ────────────────────────────────────── */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  min-width: 400px;
}

.prose-casino thead tr {
  background-color: #161b22;
  border-bottom: 2px solid #1f6feb;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #58a6ff;
  font-weight: 700;
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #21262d;
  color: #8b949e;
  vertical-align: middle;
}

.prose-casino tr:last-child td {
  border-bottom: none;
}

.prose-casino tr:hover td {
  background-color: rgba(13,17,23,0.5);
}

/* ── Logo Text ──────────────────────────────────────────────── */
.logo-text {
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #58a6ff;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Burger menu open state */
.burger-open .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-open .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── CTA Buttons ────────────────────────────────────────────── */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(31,111,235,0.7);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

/* Pulse glow animation for primary CTA */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(31,111,235,0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(31,111,235,0.9), 0 0 60px rgba(88,166,255,0.4);
  }
}

.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Parallax effect (supported browsers) */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    background-attachment: fixed;
  }
}

/* Hero particles background */
.hero-particles {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(31,111,235,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(88,166,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(210,153,34,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Bonus badge glow animation */
.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(31,111,235,0.4), 0 0 60px rgba(31,111,235,0.1);
  }
  50% {
    box-shadow: 0 0 50px rgba(31,111,235,0.7), 0 0 100px rgba(88,166,255,0.2);
  }
}

/* Scroll bounce indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-bounce {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ── Review Cards ───────────────────────────────────────────── */
.review-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,111,235,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 20px rgba(31,111,235,0.1);
}

/* ── Provider Word Cloud ────────────────────────────────────── */
.provider-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  color: #8b949e;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
  padding: 2px 4px;
  border-radius: 4px;
}

.provider-tag:nth-child(3n+1) { color: #58a6ff; }
.provider-tag:nth-child(3n+2) { color: #c9d1d9; }
.provider-tag:nth-child(3n)   { color: #e3b341; }

.provider-tag:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(88,166,255,0.6);
}

/* ── Games Marquee ──────────────────────────────────────────── */
.games-marquee-wrapper {
  position: relative;
}

.games-marquee-wrapper::before,
.games-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.games-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #1c2330, transparent);
}

.games-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #1c2330, transparent);
}

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

.games-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.games-marquee-track:hover {
  animation-play-state: paused;
}

/* Duplicate cards for seamless loop */
.games-marquee-track > * {
  flex-shrink: 0;
}

/* ── Game Cards ─────────────────────────────────────────────── */
.game-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(88,166,255,0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(31,111,235,0.2);
}

/* ── Step Cards ─────────────────────────────────────────────── */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(31,111,235,0.15);
}

.step-badge {
  position: relative;
}

/* ── Promo Cards ────────────────────────────────────────────── */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: rgba(31,111,235,0.4);
}

.faq-trigger {
  cursor: pointer;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
  color: #58a6ff;
}

.faq-answer {
  border-top: 1px solid #21262d;
  animation: fadeSlideIn 0.25s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile Nav Overlay ─────────────────────────────────────── */
#mobile-menu {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* ── Scrollbar Styling ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(31,111,235,0.3);
  color: #c9d1d9;
}

/* ── Focus Styles ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Utility: Section Divider ───────────────────────────────── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #1f6feb, #58a6ff);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ── Steel Panel Pattern Overlay ───────────────────────────── */
.steel-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.01) 10px,
      rgba(255,255,255,0.01) 20px
    );
}

/* ── Responsive Max Container ───────────────────────────────── */
.max-w-site {
  max-width: 1440px;
}

/* ── Animate on scroll utility ──────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* ── Image aspect ratio helpers ─────────────────────────────── */
.aspect-game {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Glow Text ──────────────────────────────────────────────── */
.text-glow-blue {
  text-shadow: 0 0 12px rgba(88,166,255,0.7);
}

.text-glow-gold {
  text-shadow: 0 0 12px rgba(227,179,65,0.7);
}

/* ── Badge/Tag ──────────────────────────────────────────────── */
.tag-new {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-hot {
  background: linear-gradient(135deg, #1f6feb, #388bfd);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Sticky Header Shadow Scroll Effect ─────────────────────── */
#site-header {
  transition: box-shadow 0.3s ease;
}

/* ── Print Reset ────────────────────────────────────────────── */
@media print {
  .hero-section,
  #site-header,
  footer {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}