/* ==========================================================
   CapoSino Casino – Custom CSS
   Arctic Luxe Theme | Midnight + Cyan + Silver
   ========================================================== */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #080d1a;
  color: #c8dce8;
}

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

/* ---------- CSS Variables ---------- */
:root {
  --midnight: #080d1a;
  --midnight-deep: #050810;
  --arctic-cyan: #00d4e8;
  --arctic-cyan-light: #5eeeff;
  --frost-silver: #c8dce8;
  --ice-white: #eaf6fb;
  --glacier: #1a2f45;
  --glacier-light: #1e3a52;
  --neon-cyan: #00f5ff;
  --gold-accent: #ffd700;
  --max-width: 1440px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--midnight);
}
::-webkit-scrollbar-thumb {
  background: var(--glacier);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--arctic-cyan);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  line-height: 1.2;
}

a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ---------- Prose (Single Pages) ---------- */
.prose-casino {
  color: var(--frost-silver);
  max-width: none;
  word-break: break-word;
}

.prose-casino h1 {
  color: var(--arctic-cyan);
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.prose-casino h2 {
  color: var(--ice-white);
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,212,232,0.2);
  padding-bottom: 0.5rem;
}

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

.prose-casino h4 {
  color: var(--frost-silver);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: rgba(200, 220, 232, 0.85);
}

.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: rgba(200, 220, 232, 0.85);
  line-height: 1.7;
}

.prose-casino ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--arctic-cyan);
}

.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  counter-reset: item;
  list-style: none;
}

.prose-casino ol li {
  counter-increment: item;
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(200, 220, 232, 0.85);
  line-height: 1.7;
}

.prose-casino ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: -1.5rem;
  color: var(--arctic-cyan);
  font-weight: 700;
}

.prose-casino strong {
  color: var(--ice-white);
  font-weight: 700;
}

.prose-casino a {
  color: var(--arctic-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose-casino blockquote {
  border-left: 3px solid var(--arctic-cyan);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: rgba(200, 220, 232, 0.7);
  font-style: italic;
}

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

.prose-casino code {
  background: var(--glacier);
  color: var(--arctic-cyan);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: var(--glacier);
  border: 1px solid var(--glacier-light);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

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

.prose-casino thead tr {
  background: var(--glacier);
  border-bottom: 1px solid rgba(0,212,232,0.2);
}

.prose-casino thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--arctic-cyan);
  white-space: nowrap;
}

.prose-casino tbody tr {
  border-bottom: 1px solid rgba(26, 47, 69, 0.5);
  transition: background 0.15s ease;
}

.prose-casino tbody tr:hover {
  background: rgba(26, 47, 69, 0.4);
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  color: rgba(200, 220, 232, 0.85);
  vertical-align: top;
}

/* Overflow wrapper for all tables in markdown content */
.prose-casino div.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* ---------- Frost Particles ---------- */
.frost-particles {
  pointer-events: none;
}

.frost-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 212, 232, 0.6);
  box-shadow: 0 0 8px rgba(0, 212, 232, 0.8), 0 0 16px rgba(0, 212, 232, 0.4);
  animation: frost-float 8s ease-in-out infinite;
}

.frost-particle::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes frost-float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-5px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-30px) translateX(15px) scale(1.1);
    opacity: 0.7;
  }
}

/* Bonus badge glow animation */
.bonus-badge {
  animation: bonusGlow 3s ease-in-out infinite;
}

@keyframes bonusGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0,212,232,0.3), 0 0 40px rgba(0,212,232,0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0,212,232,0.6), 0 0 80px rgba(0,212,232,0.2), 0 0 120px rgba(0,212,232,0.1);
  }
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-20deg);
  animation: shineSlide 3s ease-in-out infinite;
}

@keyframes shineSlide {
  0% { left: -60%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--glacier) 0%, rgba(26,47,69,0.8) 50%, var(--glacier) 100%);
  border: 1px solid rgba(0,212,232,0.2);
  border-radius: 50px;
  padding: 0.75rem 0;
}

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

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

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--frost-silver);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 0.5rem;
}

.marquee-item i {
  flex-shrink: 0;
}

/* ---------- Game Cards ---------- */
.game-card {
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,212,232,0.2);
}

/* ---------- Step Cards ---------- */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--arctic-cyan), var(--neon-cyan));
  color: var(--midnight);
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(0,212,232,0.4);
  animation: stepPulse 3s ease-in-out infinite;
}

.step-card:nth-child(2) .step-badge {
  background: linear-gradient(135deg, var(--gold-accent), #ffaa00);
  animation-delay: 1s;
}

.step-card:nth-child(3) .step-badge {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  animation-delay: 2s;
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,232,0.4); }
  50% { box-shadow: 0 0 35px rgba(0,212,232,0.8), 0 0 60px rgba(0,212,232,0.3); }
}

.step-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(26,47,69,0.8);
  border: 1px solid rgba(0,212,232,0.2);
  margin: 0 auto 1.25rem;
  animation: float 6s ease-in-out infinite;
}

.step-card:nth-child(2) .step-icon-wrap {
  animation-delay: 2s;
}

.step-card:nth-child(3) .step-icon-wrap {
  animation-delay: 4s;
}

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

/* ---------- Word Cloud (Provider Tags) ---------- */
.provider-tag {
  display: inline-block;
  background: rgba(26,47,69,0.8);
  border: 1px solid rgba(0,212,232,0.15);
  color: rgba(200,220,232,0.8);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  border-color: var(--arctic-cyan);
  color: var(--arctic-cyan);
  background: rgba(0,212,232,0.1);
}

.provider-tag.large {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-color: rgba(0,212,232,0.25);
  color: var(--frost-silver);
}

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

.promo-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ---------- Review Blocks ---------- */
.review-block {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-block:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

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

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

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

/* ---------- Data Tables (Homepage & sections) ---------- */
.data-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.data-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.9375rem;
}

.data-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--arctic-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
  white-space: nowrap;
  word-break: normal;
}

.data-table tbody td {
  padding: 1rem 1.25rem;
  word-break: normal;
  vertical-align: middle;
}

.data-table--compact {
  min-width: 20rem;
}

.data-table--compact thead th,
.data-table--compact tbody td {
  padding: 0.75rem 1rem;
}

/* Prevent global word-break from squishing table cell text */
table th,
table td {
  word-break: normal;
}

/* ---------- Payment Icon Badges ---------- */
.payment-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(26,47,69,0.8);
  border: 1px solid rgba(0,212,232,0.15);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.payment-icon-badge:hover {
  border-color: var(--arctic-cyan);
  background: rgba(0,212,232,0.1);
}

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

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--arctic-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* ---------- Arctic Pattern Background ---------- */
.bg-arctic-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,212,232,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,212,232,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,215,0,0.03) 0%, transparent 60%);
}

/* ---------- Parallax ---------- */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* ---------- Glow Effects ---------- */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0,212,232,0.4), 0 0 40px rgba(0,212,232,0.2);
}

.glow-gold {
  box-shadow: 0 0 20px rgba(255,215,0,0.4), 0 0 40px rgba(255,215,0,0.2);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0,212,232,0.8), 0 0 20px rgba(0,212,232,0.4);
}

/* ---------- Utilities ---------- */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

  .bonus-badge {
    padding: 1.5rem;
  }

  .step-badge {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .step-icon-wrap {
    width: 4rem;
    height: 4rem;
  }
}

@media (max-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease both;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--arctic-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(0,212,232,0.3);
  color: var(--ice-white);
}
