/* ============================================================
   BetStruck Casino – Custom CSS
   Theme: Stahl Impact (Graphite + Electric Blue)
============================================================ */

/* Base */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
}

/* ============================================================
   Prose Casino Styles
============================================================ */
.prose-casino {
  color: #9aafc8;
  line-height: 1.8;
  font-size: 1rem;
  max-width: none;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 1em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2.2rem; }
.prose-casino h2 { font-size: 1.7rem; color: #5ec4ff; }
.prose-casino h3 { font-size: 1.3rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1.25em;
  color: #9aafc8;
}

.prose-casino a {
  color: #29a0ff;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #5ec4ff;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  color: #9aafc8;
}

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

.prose-casino li {
  margin-bottom: 0.4em;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #0078f0;
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: #1c2030;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #c0cfe3;
  font-style: italic;
}

.prose-casino code {
  background: #1c2030;
  color: #5ec4ff;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: #141720;
  border: 1px solid #252a3a;
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  color: #a8deff;
  font-size: 0.9em;
}

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

.prose-casino img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  display: block;
}

/* Prose Table Scroll Wrapper */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

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

/* Prose Tables */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5em 0;
}

.prose-casino thead tr {
  background: #1c2030;
}

.prose-casino th {
  padding: 0.75em 1em;
  text-align: left;
  color: #29a0ff;
  font-weight: 700;
  border-bottom: 2px solid #252a3a;
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.65em 1em;
  color: #9aafc8;
  border-bottom: 1px solid #252a3a;
}

.prose-casino tr:hover td {
  background: #1c2030;
}

/* Inline table wrapper for markdown tables */
.prose-casino table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   Hero Section
============================================================ */
.hero-bg {
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-parallax .hero-bg {
  will-change: transform;
}

/* ============================================================
   Bonus Glow Animation
============================================================ */
@keyframes bonusGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 120, 240, 0.3), 0 0 40px rgba(0, 120, 240, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 120, 240, 0.6), 0 0 70px rgba(0, 120, 240, 0.3);
  }
}

.bonus-glow {
  animation: bonusGlow 3s ease-in-out infinite;
}

/* ============================================================
   Pulse CTA
============================================================ */
@keyframes pulseCta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.pulse-cta {
  animation: pulseCta 2.5s ease-in-out infinite;
}

/* ============================================================
   Marquee Animation
============================================================ */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 120, 240, 0.15);
}

/* ============================================================
   Game Cards
============================================================ */
.game-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 120, 240, 0.25);
  border-color: #0078f0;
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 120, 240, 0.15);
  border-color: #0078f0;
}

/* ============================================================
   Word Cloud Provider Tags
============================================================ */
.word-cloud {
  line-height: 1.6;
}

.provider-tag {
  display: inline-block;
  color: #9aafc8;
  transition: color 0.2s;
  cursor: default;
  font-style: italic;
}

.provider-tag:nth-child(3n+1) { color: #29a0ff; }
.provider-tag:nth-child(3n+2) { color: #c0cfe3; }
.provider-tag:nth-child(3n+3) { color: #5ec4ff; }

.provider-tag:hover {
  color: #f0c040;
}

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

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: #0078f0;
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: color 0.2s;
}

.faq-trigger:hover span {
  color: #29a0ff;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  color: #f0c040;
}

.faq-answer {
  transition: max-height 0.3s ease;
}

/* ============================================================
   Navigation
============================================================ */
header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   SVG Background Patterns
============================================================ */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(41, 160, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pattern-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(41, 160, 255, 0.04) 8px,
    rgba(41, 160, 255, 0.04) 16px
  );
}

/* ============================================================
   Energy Burst Decorators
============================================================ */
@keyframes energyPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.energy-burst {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 120, 240, 0.4) 0%, transparent 70%);
  animation: energyPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* ============================================================
   Metallic Shine Effect
============================================================ */
@keyframes metallicShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.metallic-shine {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: metallicShine 3s linear infinite;
}

/* ============================================================
   Responsive Utilities
============================================================ */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }
}

/* Scrollable tables on mobile */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  word-break: normal;
}

/* ============================================================
   Parallax on hero (JS-enhanced, CSS fallback)
============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: heroParallax 20s ease-in-out infinite alternate;
  }

  @keyframes heroParallax {
    0% { transform: scale(1.05) translateY(0); }
    100% { transform: scale(1.05) translateY(-2%); }
  }
}

/* ============================================================
   Custom Scrollbar
============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #141720;
}

::-webkit-scrollbar-thumb {
  background: #2e3448;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0078f0;
}

/* ============================================================
   Focus Styles (Accessibility)
============================================================ */
:focus-visible {
  outline: 2px solid #0078f0;
  outline-offset: 2px;
}

/* ============================================================
   Container Max Width
============================================================ */
.max-w-8xl {
  max-width: 1440px;
}