/* ============================================================
   KumoBet Casino – Custom CSS
   Neon Storm Theme: Electric Cyan + Violet on Dark Cloud BG
   ============================================================ */

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

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

* {
  box-sizing: border-box;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  --neon-cyan: #00f5ff;
  --neon-violet: #8b00ff;
  --neon-violet-light: #b44fff;
  --cloud-dark: #0a0a1a;
  --cloud-mid: #10102e;
  --cloud-surface: #1a1a40;
  --cloud-card: #1e1e4a;
  --lightning-gold: #ffd700;
  --electric-pink: #ff00aa;
  --storm-blue: #0d1b5e;
}

/* ---------- Neon CTA Buttons ---------- */
.btn-neon {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00bcd4 100%);
  color: #0a0a1a;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.2);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.btn-neon:hover {
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.8), 0 0 60px rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #00f5ff 0%, #00e5ff 100%);
  color: #000;
}

.btn-neon-sm {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00bcd4 100%);
  color: #0a0a1a;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

.btn-neon-sm:hover {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.7);
  transform: translateY(-1px);
}

.btn-violet-sm {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--neon-violet-light) 0%, var(--neon-violet) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(139, 0, 255, 0.4);
}

.btn-violet-sm:hover {
  box-shadow: 0 0 20px rgba(139, 0, 255, 0.7);
  transform: translateY(-1px);
}

.btn-gold-sm {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--lightning-gold) 0%, #e6b800 100%);
  color: #0a0a1a;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.btn-gold-sm:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--neon-violet-light);
  color: var(--neon-violet-light);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(180, 79, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

/* ---------- Bonus Badge ---------- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(10, 10, 26, 0.95) 0%, rgba(30, 30, 74, 0.95) 100%);
  border: 2px solid var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 245, 255, 0.3),
    0 0 60px rgba(139, 0, 255, 0.15),
    inset 0 0 20px rgba(0, 245, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* ---------- Review Cards ---------- */
.review-card {
  background: linear-gradient(145deg, var(--cloud-card) 0%, rgba(10, 10, 26, 0.9) 100%);
  border: 1px solid rgba(139, 0, 255, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
}

/* ---------- Step Cards ---------- */
.step-card {
  background: linear-gradient(145deg, var(--cloud-card) 0%, rgba(13, 27, 94, 0.5) 100%);
  border: 1px solid rgba(139, 0, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 245, 255, 0.1);
}

/* ---------- Game Cards ---------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 0, 255, 0.15);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 245, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.3);
}

/* ---------- Promo Cards ---------- */
.promo-card {
  background: linear-gradient(145deg, var(--cloud-card) 0%, var(--cloud-mid) 100%);
  border: 1px solid rgba(139, 0, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 12px 35px rgba(0, 245, 255, 0.1);
}

/* ---------- Provider Word Cloud ---------- */
.provider-cloud .provider-tag {
  display: inline-block;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
}

.provider-cloud .provider-tag:hover {
  text-shadow: 0 0 10px currentColor;
}

/* ---------- Marquee Animation ---------- */
.marquee-wrap {
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

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

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

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

/* ---------- Neon Glow Pulse Animation ---------- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.6), 0 0 60px rgba(139, 0, 255, 0.3);
  }
}

/* ---------- Float Animation ---------- */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

/* ---------- Section Header Styling ---------- */
.section-header {
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet-light));
  border-radius: 9999px;
  margin: 1rem auto 0;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ---------- Step Badge ---------- */
.step-badge {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

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

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

.faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ---------- Table Utilities (Prose + General) ---------- */
.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;
}

/* General table scroll wrapper - always apply -->
div.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ---------- Prose Casino (Article Pages) ---------- */
.prose-casino {
  color: #d1d5db;
  line-height: 1.8;
  max-width: 100%;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.prose-casino h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.prose-casino h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neon-violet-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-casino h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose-casino a {
  color: var(--neon-cyan);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose-casino a:hover {
  color: var(--neon-violet-light);
}

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

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

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

.prose-casino ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose-casino ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-weight: 700;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-casino ol li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
  padding-left: 0.5rem;
}

.prose-casino blockquote {
  border-left: 3px solid var(--neon-violet-light);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-style: italic;
  background: rgba(139, 0, 255, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

.prose-casino code {
  background: rgba(0, 245, 255, 0.1);
  color: var(--neon-cyan);
  padding: 0.1em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: var(--cloud-surface);
  border: 1px solid rgba(139, 0, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(139, 0, 255, 0.2);
  margin: 2rem 0;
}

/* Prose article tables */
.prose-article {
  max-width: 100%;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  background: var(--cloud-card);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose-casino thead {
  background: var(--cloud-surface);
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--neon-cyan);
  border-bottom: 1px solid rgba(139, 0, 255, 0.2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose-casino td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(139, 0, 255, 0.1);
  color: #d1d5db;
}

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

.prose-casino tr:hover td {
  background: rgba(0, 245, 255, 0.03);
}

/* ---------- Header Sticky Styles ---------- */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(10, 10, 26, 0.98);
  box-shadow: 0 2px 20px rgba(0, 245, 255, 0.1);
}

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

::-webkit-scrollbar-track {
  background: var(--cloud-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-violet);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* ---------- Lightning Trail SVG Animations ---------- */
@keyframes lightningPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

.lightning-trail {
  animation: lightningPulse 3s ease-in-out infinite;
}

/* ---------- Focus Styles (Accessibility) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Image Responsiveness ---------- */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 640px) {
  .prose-casino h1 {
    font-size: 1.75rem;
  }

  .prose-casino h2 {
    font-size: 1.4rem;
  }

  .prose-casino h3 {
    font-size: 1.15rem;
  }

  .bonus-badge {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* ---------- Neon Text Shadow Utility ---------- */
.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.text-glow-violet {
  text-shadow: 0 0 10px rgba(139, 0, 255, 0.6);
}

.text-glow-gold {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* ---------- Utility: Max-width site container ---------- */
.max-w-site {
  max-width: 1440px;
}
