/* ==========================================================
   WildHub Casino – Custom CSS
   Neon Frontier Theme
   ========================================================== */

/* Reset & Base
   ---------------------------------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0A0E1A;
  color: #E2E8F0;
  overflow-x: hidden;
  word-break: break-word;
}

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

/* ==========================================================
   Typography
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  word-break: break-word;
}

p {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================
   Prose Casino – Article / Single Page Styling
   ========================================================== */
.prose-casino {
  color: #E2E8F0;
  max-width: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prose-casino h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #00F5FF;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose-casino h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00F5FF;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1E2D45;
}

.prose-casino h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FF6B00;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-casino h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  color: #94A3B8;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

.prose-casino ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.prose-casino ul li {
  padding-left: 1.5rem;
  position: relative;
  color: #94A3B8;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose-casino ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00F5FF;
}

.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  counter-reset: list-counter;
  list-style: none;
}

.prose-casino ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 1rem;
  color: #94A3B8;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose-casino ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: -1.25rem;
  color: #FF6B00;
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 4px solid #00F5FF;
  padding: 1rem 1.5rem;
  background: #111827;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: #E2E8F0;
  font-style: italic;
}

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

.prose-casino em {
  color: #CBD5E1;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #1E2D45;
  margin: 2rem 0;
}

.prose-casino code {
  background: #1A2435;
  color: #00F5FF;
  padding: 0.2em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.875em;
}

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

.prose-casino pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: #E2E8F0;
}

/* 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 table default --*/
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.prose-casino thead tr {
  background-color: #1A2435;
  border-bottom: 2px solid #1E2D45;
}

.prose-casino thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #00F5FF;
  font-weight: 600;
  white-space: nowrap;
}

.prose-casino tbody tr {
  border-bottom: 1px solid #1E2D45;
  transition: background-color 0.2s;
}

.prose-casino tbody tr:hover {
  background-color: #1A2435;
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  color: #94A3B8;
  vertical-align: top;
}

/* Overflow wrapper for all tables */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero-section {
  position: relative;
}

/* Parallax handled by CSS --
   The background-attachment: fixed creates a native parallax */
.hero-bg {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  /* Disable fixed on mobile for performance */
  .hero-bg {
    background-attachment: scroll;
  }
}

/* Motion Trail Animations */
.motion-trail {
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
  animation: trailFloat 8s ease-in-out infinite;
}

.trail-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00F5FF 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.trail-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #FF6B00 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: 3s;
  animation-duration: 12s;
}

.trail-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #00F5FF 0%, transparent 70%);
  top: 50%;
  right: 20%;
  animation-delay: 6s;
  animation-duration: 9s;
}

@keyframes trailFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.05);
  }
  50% {
    transform: translateY(-15px) translateX(-10px) scale(0.95);
  }
  75% {
    transform: translateY(-40px) translateX(20px) scale(1.02);
  }
}

/* Scroll bounce animation */
.scroll-bounce {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================
   Neon Pulse Animation
   ========================================================== */
@keyframes pulseCyan {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3), 0 0 20px rgba(0, 245, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.7), 0 0 50px rgba(0, 245, 255, 0.3);
  }
}

.neon-pulse {
  animation: pulseCyan 2s ease-in-out infinite;
}

/* ==========================================================
   Marquee Animation
   ========================================================== */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

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

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

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
  gap: 3rem;
  padding: 1rem 0;
}

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

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

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

.step-card:hover {
  transform: translateY(-4px);
}

.step-badge {
  transition: transform 0.3s ease;
}

.step-card:hover .step-badge {
  transform: scale(1.1);
}

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

.game-card:hover {
  transform: translateY(-4px);
}

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

.promo-card:hover {
  transform: translateY(-4px);
}

/* ==========================================================
   FAQ Section
   ========================================================== */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 245, 255, 0.5);
}

.faq-answer {
  border-top: 1px solid #1E2D45;
}

/* ==========================================================
   Provider Word Cloud
   ========================================================== */
.provider-tag {
  transition: all 0.2s ease;
  display: inline-block;
}

.provider-tag:hover {
  transform: scale(1.05);
}

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

.burger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================
   Buttons – Global
   ========================================================== */
a[href='/play'],
button[data-cta] {
  transition: all 0.2s ease;
}

/* ==========================================================
   Scrollbar Styling
   ========================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #1E2D45;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00F5FF;
}

/* ==========================================================
   Utility
   ========================================================== */
.text-balance {
  text-wrap: balance;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: 200ms;
  transition-timing-function: ease;
}

/* Container max-width enforcement */
.max-w-site {
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================
   Responsive Tables Global
   ========================================================== */
table {
  width: 100%;
  border-collapse: collapse;
}

td, th {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================
   Mobile Adjustments
   ========================================================== */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .step-badge {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .marquee-track {
    gap: 1.25rem;
  }

  .marquee-chip {
    padding: 0.625rem 0.75rem;
    gap: 0.75rem;
  }

  .marquee-chip-icon {
    height: 2.5rem;
    width: 2.5rem;
    font-size: 1.125rem;
  }

  .marquee-chip-hint {
    max-width: 11rem;
  }
}

/* ==========================================================
   Accessibility
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .motion-trail,
  .scroll-bounce,
  .marquee-track,
  .neon-pulse {
    animation: none;
  }

  .hero-bg {
    background-attachment: scroll;
  }
}