/* =============================================================
   CrazyBetCasino — Custom CSS
   Neon Chaos Theme: Electric Red & Cyan on Dark Digital Backdrop
   ============================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #080D1A;
  color: #f1f5f9;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* ---- Neon Glow Utilities ---- */
.text-neon-red   { color: #FF1744; }
.text-neon-cyan  { color: #00E5FF; }
.text-neon-pink  { color: #FF4081; }

.shadow-neon-red  { box-shadow: 0 0 18px 3px rgba(255, 23, 68, 0.65); }
.shadow-neon-cyan { box-shadow: 0 0 18px 3px rgba(0, 229, 255, 0.65); }

.border-neon-red  { border-color: #FF1744; }
.border-neon-cyan { border-color: #00E5FF; }

/* ---- Animated Neon Trails (Hero Background FX) ---- */
.neon-trail {
  position: absolute;
  width: 2px;
  border-radius: 9999px;
  opacity: 0;
  animation: trailFall 4s ease-in infinite;
  pointer-events: none;
}

.neon-trail-1 {
  height: 180px;
  left: 20%;
  top: -200px;
  background: linear-gradient(to bottom, transparent, #FF1744, transparent);
  animation-delay: 0s;
  animation-duration: 5s;
}

.neon-trail-2 {
  height: 250px;
  left: 55%;
  top: -260px;
  background: linear-gradient(to bottom, transparent, #00E5FF, transparent);
  animation-delay: 1.8s;
  animation-duration: 6s;
}

.neon-trail-3 {
  height: 150px;
  left: 80%;
  top: -170px;
  background: linear-gradient(to bottom, transparent, #FF4081, transparent);
  animation-delay: 3.2s;
  animation-duration: 4.5s;
}

@keyframes trailFall {
  0%   { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(120vh); opacity: 0; }
}

/* ---- Parallax Hero ---- */
.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

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

/* ---- Bonus Badge Pulse ---- */
.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 14px 2px rgba(0, 229, 255, 0.5); }
  50%       { box-shadow: 0 0 28px 6px rgba(0, 229, 255, 0.85); }
}

/* ---- CTA Button Animations ---- */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px 4px rgba(255, 23, 68, 0.7);
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 200% 0;
  transition: background-position 0.6s ease;
}

.cta-primary:hover::after {
  background-position: -50% 0;
}

.cta-secondary {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px 4px rgba(0, 229, 255, 0.5);
}

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

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(255, 23, 68, 0.35);
}

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.2);
}

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

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

/* ---- Provider Word Cloud ---- */
.provider-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  font-weight: 700;
  cursor: default;
  transition: opacity 0.2s ease, transform 0.2s ease;
  word-break: keep-all;
}

.provider-tag:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

/* ---- FAQ Accordion ---- */
.faq-question {
  cursor: pointer;
  transition: background 0.15s ease;
}

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

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

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

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

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

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

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

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

/* ---- Prose Styling (for single.html content pages) ---- */
.prose-casino {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
}

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

.prose-casino h1 { font-size: 2rem; color: #ffffff; }
.prose-casino h2 { font-size: 1.5rem; color: #00E5FF; }
.prose-casino h3 { font-size: 1.25rem; color: #FF1744; }
.prose-casino h4 { font-size: 1.1rem;  color: #ffffff; }

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

.prose-casino a {
  color: #00E5FF;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

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

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #00E5FF;
  padding-left: 1rem;
  margin-left: 0;
  color: #9ca3af;
  font-style: italic;
  background: rgba(0, 229, 255, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

.prose-casino code {
  background: rgba(255,255,255,0.07);
  color: #FF4081;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

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

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

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

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

.prose-casino table th {
  background: #0D1428;
  color: #9ca3af;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid #1F2A45;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.prose-casino table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #1F2A45;
  vertical-align: top;
}

.prose-casino table tr:hover td {
  background: rgba(0, 229, 255, 0.04);
}

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

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

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

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

::-webkit-scrollbar-track {
  background: #080D1A;
}

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

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

/* ---- Selection Colour ---- */
::selection {
  background: rgba(0, 229, 255, 0.3);
  color: #ffffff;
}

/* ---- Utility: SVG Background Pattern ---- */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Glow Pulse Animation (reusable) ---- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(255, 23, 68, 0.4); }
  50%       { box-shadow: 0 0 22px 5px rgba(255, 23, 68, 0.8); }
}

.animate-glow-pulse {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* ---- Neon Border Animation ---- */
@keyframes neonBorderSpin {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 640px) {
  .hero-parallax {
    min-height: 100svh;
  }

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

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