/* ============================================================
   KumoBet Casino — Custom CSS & Animations
   Global Storm Theme: Platinum + Deep Sapphire
============================================================ */

/* Base reset */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  word-break: break-word;
}

table, th, td {
  word-break: normal;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}


/* ============================================================
   Typography / Prose Styling
============================================================ */

.prose-casino {
  color: #C0C8D8;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 72ch;
}

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

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; }
.prose-casino h3 { font-size: 1.3rem; }
.prose-casino h4 { font-size: 1.1rem; }

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

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

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

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

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0 1.25em 1.5em;
  color: #C0C8D8;
}

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

.prose-casino li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.prose-casino blockquote {
  border-left: 4px solid #1A2B6D;
  padding-left: 1.25rem;
  margin: 1.5em 0;
  color: #C0C8D8;
  font-style: italic;
}

.prose-casino code {
  background: #1A2B6D;
  color: #38BDF8;
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  font-size: 0.875em;
}

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

.prose-casino pre code {
  background: transparent;
  padding: 0;
  color: #C0C8D8;
}

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

.prose-casino img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

/* ============================================================
   Table Scroll Utility
============================================================ */

.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;
}

/* Table styles inside prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #C0C8D8;
}

.prose-casino thead tr {
  background: #1A2B6D;
  color: #E5E7F0;
}

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

.prose-casino td {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(26, 43, 109, 0.3);
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(26, 43, 109, 0.15);
}

/* Wrapper for all tables outside prose to enable horizontal scroll */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.kumo-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.kumo-table-scroll table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.kumo-table-scroll th,
.kumo-table-scroll td {
  white-space: nowrap;
  overflow-wrap: normal;
}


/* ============================================================
   Logo Text Gradient
============================================================ */

.kumo-logo-text {
  background: linear-gradient(90deg, #E5E7F0 0%, #7DD3FC 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   Provider Word Cloud Tags
============================================================ */

.provider-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(26, 43, 109, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #C0C8D8;
  transition: all 0.2s;
  cursor: default;
  line-height: 1.4;
}

.provider-tag:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #E5E7F0;
}


/* ============================================================
   Hero Parallax
============================================================ */

.hero-section {
  position: relative;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-parallax {
    transform: translateZ(0);
    transition: transform 0.1s linear;
  }
}


/* ============================================================
   Games Marquee Animation
============================================================ */

.games-marquee-wrapper {
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.games-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

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

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


/* ============================================================
   Lightning Glow Pulse
============================================================ */

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.3); }
  50%       { box-shadow: 0 0 28px rgba(56, 189, 248, 0.7); }
}

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


/* ============================================================
   Gold Shimmer Animation (CTA buttons)
============================================================ */

@keyframes gold-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-btn {
  background: linear-gradient(90deg, #D4AF37 25%, #FBBF24 50%, #D4AF37 75%);
  background-size: 200% auto;
  animation: gold-shimmer 3s linear infinite;
}


/* ============================================================
   Cloud / Storm Background Pattern
============================================================ */

.storm-bg-pattern {
  position: relative;
  overflow: hidden;
}

.storm-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(26, 43, 109, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}


/* ============================================================
   Sticky Header Shadow on Scroll
============================================================ */

#site-header {
  transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}


/* ============================================================
   FAQ Accordion Animation
============================================================ */

.faq-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-trigger:focus {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

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


/* ============================================================
   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; }

  .games-marquee {
    animation-duration: 25s;
  }
}


/* ============================================================
   Burger Menu Transition Lines
============================================================ */

#burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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


/* ============================================================
   Scroll Progress Indicator
============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #38BDF8);
  z-index: 9999;
  transition: width 0.1s linear;
}


/* ============================================================
   Game Card hover states
============================================================ */

.game-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.15);
}


/* ============================================================
   Section divider gradient lines
============================================================ */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #1A2B6D 30%, #38BDF8 50%, #1A2B6D 70%, transparent 100%);
  margin: 0 auto;
  max-width: 600px;
  opacity: 0.6;
}


/* ============================================================
   Accessibility: Focus visible
============================================================ */

:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 3px;
}