/* ============================================================
   CrazyBetCasino – Custom CSS
   Arctic Chaos theme: icy cyan + silver + deep midnight
============================================================ */

/* ===== RESET & BASE ===== */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  background-color: #050d1a;
  color: #e0f0fa;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #050d1a;
}
::-webkit-scrollbar-thumb {
  background: #1a3a5c;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

a {
  transition: color 0.2s ease;
}

/* ===== LAYOUT ===== */
.max-w-8xl {
  max-width: 1440px;
}

/* ===== NAVBAR SPACER ===== */
main {
  padding-top: 4rem; /* offset sticky header height */
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ===== FROST PARTICLE ANIMATION ===== */
@keyframes frost {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulseCyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(0, 212, 255, 0); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FROST PARTICLES ===== */
.frost-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.frost-particles::before,
.frost-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  animation: frost 8s linear infinite;
}

.frost-particles::before {
  left: 20%;
  top: 100%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.frost-particles::after {
  left: 70%;
  top: 100%;
  animation-delay: 3s;
  animation-duration: 9s;
  width: 3px;
  height: 3px;
  background: rgba(184, 212, 232, 0.5);
}

/* ===== BONUS BADGE ===== */
.bonus-badge {
  animation: pulseCyan 3s ease-in-out infinite;
  position: relative;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #00d4ff, #b8d4e8, #ffd700, #00d4ff);
  background-size: 400% 400%;
  animation: shimmer 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0.5;
}

/* ===== GAME CARDS ===== */
.games-strip {
  scrollbar-width: thin;
  scrollbar-color: #1a3a5c #050d1a;
}

.games-strip::-webkit-scrollbar {
  height: 4px;
}

.games-strip::-webkit-scrollbar-track {
  background: #050d1a;
}

.games-strip::-webkit-scrollbar-thumb {
  background: #1a3a5c;
  border-radius: 2px;
}

.game-card {
  animation: fadeInUp 0.5s ease both;
}

.game-card:nth-child(1) { animation-delay: 0.0s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.2s; }
.game-card:nth-child(4) { animation-delay: 0.3s; }
.game-card:nth-child(5) { animation-delay: 0.4s; }
.game-card:nth-child(6) { animation-delay: 0.5s; }

/* ===== STEP CARDS ===== */
.step-card {
  animation: fadeInUp 0.6s ease both;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.25s; }
.step-card:nth-child(3) { animation-delay: 0.4s; }

/* ===== PROMO CARDS ===== */
.promo-card {
  animation: fadeInUp 0.6s ease both;
}

.promo-card:nth-child(1) { animation-delay: 0.1s; }
.promo-card:nth-child(2) { animation-delay: 0.2s; }
.promo-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== REVIEW BLOCKS ===== */
.review-block {
  animation: fadeInUp 0.6s ease both;
}

.review-block:nth-child(1) { animation-delay: 0.1s; }
.review-block:nth-child(2) { animation-delay: 0.2s; }
.review-block:nth-child(3) { animation-delay: 0.3s; }

/* ===== PROVIDER CLOUD ===== */
.provider-tag {
  animation: fadeInUp 0.4s ease both;
  display: inline-block;
}

/* ===== MARQUEE ===== */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
  white-space: nowrap;
}

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

/* ===== PARALLAX ===== */
.parallax-bg {
  will-change: transform;
  transform-origin: center;
}

/* ===== NAV LINKS ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00d4ff;
  border-radius: 1px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* ===== BURGER MENU LINES ===== */
.burger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
  color: #ffd700;
}

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

/* ===== TABLES ===== */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

th, td {
  white-space: nowrap;
}

/* ===== PROSE CASINO ===== */
.prose-casino {
  color: #b8d4e8;
  max-width: 75ch;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; color: #00d4ff; }
.prose-casino h3 { font-size: 1.25rem; color: #ffd700; }

.prose-casino p {
  margin-bottom: 1em;
  color: #b8d4e8;
}

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

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

.prose-casino ul,
.prose-casino ol {
  margin-left: 1.5rem;
  margin-bottom: 1em;
  color: #b8d4e8;
}

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #00d4ff;
  padding-left: 1rem;
  color: #b8d4e8;
  font-style: italic;
  margin: 1.5em 0;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

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

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

.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;
  color: #b8d4e8;
}

.prose-casino th {
  background: #0d1f3c;
  color: #00d4ff;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid #1a3a5c;
  white-space: nowrap;
}

.prose-casino td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(26, 58, 92, 0.5);
  white-space: nowrap;
}

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

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

/* ===== FROST GRID BACKGROUND ===== */
.frost-grid-bg {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #ffffff;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.25rem 1.5rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .games-strip {
    gap: 0.75rem;
  }

  .game-card {
    width: 11rem;
  }
}

@media (max-width: 768px) {
  table {
    min-width: 360px;
  }

  th, td {
    padding: 0.5rem 0.6rem;
    font-size: 0.8125rem;
  }

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

/* ===== PRINT ===== */
@media print {
  .frost-particles,
  .parallax-bg,
  header,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
