/* ============================================================
   KumoBet Casino – Custom CSS
   Baltic Storm Theme: Icy Cyan & Emerald on Dark Northern Base
   ============================================================ */

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

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

body {
  background-color: #050E1A;
  color: #E0F4FF;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Scrollable Tables ---------- */
.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;
  width: max-content;
  min-width: 100%;
}

.prose-casino .prose-table-scroll th,
.prose-casino .prose-table-scroll td {
  white-space: nowrap;
  word-break: normal;
}

/* ---------- Prose Styling ---------- */
.prose-casino {
  color: #E0F4FF;
  max-width: 100%;
  line-height: 1.75;
}

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

.prose-casino h1 { font-size: 2.25rem; color: #00D4FF; }
.prose-casino h2 { font-size: 1.75rem; color: #00D4FF; }
.prose-casino h3 { font-size: 1.375rem; color: #00FF9C; }
.prose-casino h4 { font-size: 1.125rem; color: #E0F4FF; }

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

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

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

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #00D4FF;
  padding-left: 1rem;
  color: #7BA3C0;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino code {
  background: #0A1628;
  color: #00FF9C;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0A1628;
  border: 1px solid #0F2040;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

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

.prose-casino hr {
  border-color: #0F2040;
  margin: 2em 0;
}

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

.prose-casino thead th {
  background: #0A1628;
  color: #00D4FF;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #0F2040;
}

.prose-casino tbody td {
  color: #7BA3C0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #0F2040;
}

.prose-casino tbody tr:hover td {
  background: #0A1628;
  color: #E0F4FF;
}

/* Table overflow wrapper – horizontal scroll on narrow screens */
.overflow-x-auto {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.overflow-x-auto > table {
  width: max-content;
  min-width: 100%;
}

.overflow-x-auto > table th,
.overflow-x-auto > table td {
  white-space: nowrap;
  word-break: normal;
}

/* ---------- Hero Background ---------- */
.hero-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

/* ---------- Light Trails Animation ---------- */
.light-trail {
  position: absolute;
  width: 2px;
  height: 120px;
  border-radius: 9999px;
  opacity: 0;
  animation: trailFall 4s ease-in-out infinite;
}

.lt-1 {
  background: linear-gradient(to bottom, transparent, #00D4FF, transparent);
  left: 20%;
  animation-delay: 0s;
  animation-duration: 5s;
}

.lt-2 {
  background: linear-gradient(to bottom, transparent, #00FF9C, transparent);
  left: 55%;
  animation-delay: 1.5s;
  animation-duration: 4s;
}

.lt-3 {
  background: linear-gradient(to bottom, transparent, #00B8D9, transparent);
  left: 80%;
  animation-delay: 3s;
  animation-duration: 6s;
}

@keyframes trailFall {
  0% { opacity: 0; top: -10%; }
  20% { opacity: 0.7; }
  80% { opacity: 0.4; }
  100% { opacity: 0; top: 110%; }
}

/* ---------- Marquee Animation ---------- */
.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

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

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.2);
}

/* ---------- Step Badge ---------- */
.step-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00D4FF, #00FF9C);
  color: #050E1A;
  font-weight: 900;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  z-index: 10;
}

.step-card {
  position: relative;
  margin-top: 1.25rem;
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

/* ---------- Provider Tag Cloud ---------- */
.provider-tag {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.provider-tag:hover {
  transform: scale(1.05);
  color: #00D4FF !important;
}

/* ---------- FAQ Styling ---------- */
.faq-trigger {
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-trigger:hover {
  background: rgba(0, 212, 255, 0.05);
}

.faq-answer {
  animation: fadeIn 0.3s ease;
}

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

/* ---------- CTA Button Glow ---------- */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #00D4FF, #00FF9C);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-primary:hover::before {
  opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
  background: #0F2040;
  border-radius: 9999px;
}

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

/* ---------- Selection ---------- */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #E0F4FF;
}

/* ---------- Parallax Helper ---------- */
.parallax-bg {
  will-change: transform;
}

/* ---------- Glow Effects ---------- */
.glow-primary {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.glow-secondary {
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
}

/* ---------- Gradient Text Utility ---------- */
.gradient-text {
  background: linear-gradient(135deg, #00D4FF, #00FF9C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Responsive Container ---------- */
.max-w-container {
  max-width: 1440px;
}

/* ---------- Mobile Overrides ---------- */
@media (max-width: 640px) {
  .hero-bg {
    background-position: center top;
  }

  .step-badge {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    top: -0.75rem;
  }

  .provider-cloud {
    gap: 0.5rem;
  }

  .provider-tag {
    font-size: 0.8rem !important;
  }
}

/* ---------- Print ---------- */
@media print {
  header, footer, .cta-primary {
    display: none !important;
  }
}