/* =============================================================
   BitGuruz Casino — Custom CSS
   Digital Nexus Theme: Electric Cyan + Emerald on Dark Cyber
============================================================= */

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

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

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

/* ========================
   CTA Buttons
======================== */
.cta-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #00f5ff 0%, #00e676 100%);
  color: #020810;
  font-weight: 800;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.4);
  text-decoration: none;
}

.cta-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 32px rgba(0, 245, 255, 0.7);
  filter: brightness(1.1);
}

.cta-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #00f5ff;
  font-weight: 800;
  border-radius: 9999px;
  border: 2px solid #00f5ff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.cta-btn-secondary:hover {
  background: rgba(0, 245, 255, 0.12);
  transform: translateY(-2px);
}

/* ========================
   Hero Section
======================== */
.hero-section {
  background-color: #020810;
  position: relative;
}

.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

/* Data streams SVG-based animation */
.data-streams {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(0, 245, 255, 0.03) 60px,
      rgba(0, 245, 255, 0.03) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(0, 230, 118, 0.02) 60px,
      rgba(0, 230, 118, 0.02) 61px
    );
  animation: dataFlow 8s linear infinite;
}

@keyframes dataFlow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 61px 0, 0 61px; }
}

/* ========================
   Bonus Badge
======================== */
.bonus-badge {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(0, 230, 118, 0.08) 100%);
  border: 2px solid rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.2), inset 0 0 20px rgba(0, 245, 255, 0.05);
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.05); }
  50% { box-shadow: 0 0 50px rgba(0, 245, 255, 0.6), inset 0 0 30px rgba(0, 245, 255, 0.1); }
}

/* ========================
   Marquee / Game Strip
======================== */
.marquee-outer {
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  padding: 0 1.5rem;
}

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

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

/* 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 0 28px rgba(0, 245, 255, 0.35);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.25);
}

/* ========================
   Step Cards
======================== */
.step-card {
  position: relative;
  transition: transform 0.25s ease;
}

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

.step-badge {
  background: linear-gradient(135deg, #00f5ff, #00e676);
  color: #020810;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* ========================
   Review Blocks
======================== */
.review-block {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

/* ========================
   Provider Word Cloud
======================== */
.provider-tag {
  display: inline-block;
  color: #c8d8f0;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.05);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
  font-size: 0.85rem;
}

.provider-tag:hover {
  color: #00f5ff;
  border-color: #00f5ff;
  background: rgba(0, 245, 255, 0.12);
}

/* ========================
   FAQ
======================== */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.15);
}

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

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

/* ========================
   Sticky Header
======================== */
#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========================
   Tables — Mandatory
======================== */
.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 overflow */
.overflow-x-auto,
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-scroll-wrap table {
  min-width: 16rem;
}

.bonus-terms-table {
  min-width: 14rem;
}

/* Payments table — card layout on mobile */
.payments-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .payments-table {
    min-width: 44rem;
  }
}

@media (max-width: 767px) {
  .payments-table thead {
    display: none;
  }

  .payments-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid #1a3a5c;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0a1628;
  }

  .payments-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .payments-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.625rem 0.875rem;
    border: none;
    border-bottom: 1px solid #1a3a5c;
    text-align: right;
  }

  .payments-table td:last-child {
    border-bottom: none;
  }

  .payments-table td::before {
    content: attr(data-label);
    color: #00f5ff;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: left;
    flex-shrink: 0;
    max-width: 45%;
  }

  .payments-table-method {
    display: block;
    text-align: left;
    padding: 0.875rem;
    background: #0d1f3c;
    border-bottom: 1px solid #1a3a5c;
  }

  .payments-table-method::before {
    display: none;
  }
}

/* ========================
   Prose (single pages)
======================== */
.prose-casino {
  color: #c8d8f0;
  max-width: none;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #00f5ff;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }

.prose-casino p {
  margin-bottom: 1.25em;
  line-height: 1.8;
  color: #c8d8f0;
}

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

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

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

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

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

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

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

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

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5em;
}

.prose-casino th {
  background: #0a1628;
  color: #00f5ff;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #1a3a5c;
  font-weight: 700;
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border: 1px solid #1a3a5c;
  color: #c8d8f0;
}

.prose-casino tr:nth-child(even) td {
  background: rgba(10, 22, 40, 0.5);
}

.prose-casino code {
  background: #0a1628;
  color: #00e676;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0a1628;
  border: 1px solid #1a3a5c;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  font-size: 0.875em;
}

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

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

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

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

/* ========================
   Holographic reflection
======================== */
@keyframes holoShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.holo-text {
  background: linear-gradient(90deg, #00f5ff, #00e676, #00f5ff, #00e676);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoShine 4s linear infinite;
}

/* ========================
   Parallax (CSS only)
======================== */
@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    background-attachment: fixed;
  }
}

/* ========================
   Responsive utilities
======================== */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }

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

/* ========================
   Neon border hover
======================== */
.neon-border {
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: border-color 0.3s;
}

.neon-border:hover {
  border-color: #00f5ff;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

/* ========================
   Cyber grid background
======================== */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
