/* =============================================================
   CrazyBetCasino – Custom CSS
   Theme: Stahl Chaos (Graphite + Electric Blue + Industrial)
   ============================================================= */

/* ---- Base Reset & Overflow Control ---- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

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

/* ---- CSS Custom Properties ---- */
:root {
  --color-graphite-dark: #0d0d1a;
  --color-graphite: #1a1a2e;
  --color-graphite-mid: #16213e;
  --color-steel: #2c2c3e;
  --color-steel-light: #3a3a52;
  --color-electric-blue: #00b4d8;
  --color-electric-bright: #00d4ff;
  --color-electric-dim: #0077a8;
  --color-spark: #48cae4;
  --color-accent-gold: #ffd60a;
  --color-accent-silver: #c0c0c0;
  --color-danger-red: #e63946;
}

/* ---- Typography ---- */
* {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ---- Logo Text ---- */
.logo-text {
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ---- CTA Buttons ---- */
.cta-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-electric-blue) 0%, var(--color-electric-bright) 100%);
  color: #0d0d1a;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
}

.cta-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.55);
  filter: brightness(1.1);
  color: #0d0d1a;
}

.cta-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.cta-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-electric-bright);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-electric-blue);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-secondary:hover {
  background: rgba(0, 180, 216, 0.15);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.25);
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
}

.hero-bg {
  will-change: background-position;
}

/* Spark/Particle Overlay */
.spark-overlay {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 214, 10, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(0, 180, 216, 0.05) 0%, transparent 40%);
  animation: spark-pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes spark-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ---- Bonus Badge ---- */
.bonus-badge {
  position: relative;
  animation: badge-glow 3s ease-in-out infinite alternate;
}

@keyframes badge-glow {
  0% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.3), inset 0 0 20px rgba(0, 180, 216, 0.05); }
  100% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), inset 0 0 30px rgba(0, 212, 255, 0.1); }
}

/* ---- Bounce Arrow ---- */
.bounce-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- Marquee / Ticker ---- */
.marquee-strip {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}

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

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

/* ---- Review Cards ---- */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 180, 216, 0.15);
  border-color: var(--color-electric-blue);
}

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

.provider-tag {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  color: var(--color-electric-bright) !important;
  transform: scale(1.08);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 180, 216, 0.12);
}

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.15);
}

.step-badge {
  position: relative;
  animation: badge-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
  0% { box-shadow: 0 0 12px rgba(0, 180, 216, 0.4); }
  100% { box-shadow: 0 0 28px rgba(0, 212, 255, 0.7); }
}

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

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 32px rgba(0, 180, 216, 0.2);
}

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

.faq-item:hover {
  border-color: var(--color-electric-dim);
}

.faq-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.faq-trigger:focus {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}

.faq-answer {
  animation: faq-open 0.2s ease;
  padding-top: 0.5rem;
}

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

/* ---- SVG Background Pattern (Decorative) ---- */
.bg-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 180, 216, 0.03) 10px,
      rgba(0, 180, 216, 0.03) 20px
    );
}

/* ---- Tables – Scrollable on Mobile ---- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

.overflow-x-auto.rounded-2xl.border.border-steel-light table {
  width: max-content;
  min-width: 100%;
}

.overflow-x-auto.rounded-2xl.border.border-steel-light th,
.overflow-x-auto.rounded-2xl.border.border-steel-light td {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

table {
  min-width: 480px;
  border-collapse: collapse;
}

th, td {
  white-space: normal;
  word-break: break-word;
}

/* ---- Prose Casino Styles ---- */
.prose-casino {
  color: #e2e8f0;
  max-width: 72ch;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #00d4ff;
  font-weight: 800;
  margin-top: 0.8em;
  margin-bottom: 0.6em;
  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 h4 { font-size: 1.1rem; color: #ffd60a; }

.prose-casino p {
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
  color: #cbd5e1;
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
  color: #cbd5e1;
}

.prose-casino a {
  color: var(--color-electric-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: var(--color-electric-bright);
}

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

.prose-casino em {
  color: var(--color-accent-gold);
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid var(--color-electric-blue);
  padding-left: 1rem;
  color: #94a3b8;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: var(--color-steel-light);
  margin: 2em 0;
}

.prose-casino code {
  background: var(--color-steel);
  color: var(--color-electric-bright);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: var(--color-steel);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

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

/* Prose Table Scroll */
.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-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose-casino thead tr {
  background: var(--color-steel);
}

.prose-casino th {
  color: var(--color-electric-bright);
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid var(--color-electric-dim);
}

.prose-casino td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--color-steel-light);
  color: #cbd5e1;
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(44, 44, 62, 0.4);
}

.prose-casino tbody tr:hover {
  background: rgba(0, 180, 216, 0.06);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-steel-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-electric-dim);
}

/* ---- Selection ---- */
::selection {
  background: rgba(0, 180, 216, 0.3);
  color: #ffffff;
}

/* ---- Focus Visible ---- */
:focus-visible {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 3px;
}

/* ---- Utility: Glow Text ---- */
.text-glow {
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 180, 216, 0.3);
}

.text-glow-gold {
  text-shadow: 0 0 12px rgba(255, 214, 10, 0.5), 0 0 24px rgba(255, 214, 10, 0.25);
}

/* ---- Industrial Shine Effect ---- */
.shine-border {
  position: relative;
  overflow: hidden;
}

.shine-border::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-sweep {
  0% { left: -75%; }
  40%, 100% { left: 125%; }
}

/* ---- Mobile Nav Link ---- */
.mobile-nav-link {
  display: block;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.5rem 1rem;
  }

  .step-badge {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
  }

  .hero-section {
    min-height: 100svh;
  }
}

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

/* ---- Invert Prose for Dark Backgrounds ---- */
.prose-invert {
  --tw-prose-body: #cbd5e1;
  --tw-prose-headings: #00d4ff;
  --tw-prose-links: #00b4d8;
  --tw-prose-bold: #f1f5f9;
  --tw-prose-code: #00d4ff;
  --tw-prose-pre-bg: #2c2c3e;
  --tw-prose-hr: #3a3a52;
  --tw-prose-bullets: #00b4d8;
  --tw-prose-counters: #00b4d8;
  --tw-prose-quote-borders: #00b4d8;
}
