/* ==============================================
   DalerCasino – Custom CSS & Animations
   Neon Luxe Theme: electric cyan + violet
   ============================================== */

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

html { scroll-behavior: smooth; }

body {
  background-color: #050a14;
  color: #e5e7eb;
  font-family: 'Inter', ui-sans-serif, system-ui;
}

/* ---- Color Variables ---- */
:root {
  --cyan: #00f5ff;
  --violet: #bf5fff;
  --cyan-dim: #06b6d4;
  --violet-dim: #8b5cf6;
  --dark-900: #050a14;
  --dark-800: #0a1224;
  --dark-700: #0f1b35;
  --dark-600: #162040;
  --glow-cyan: 0 0 20px rgba(0,245,255,0.35), 0 0 60px rgba(0,245,255,0.1);
  --glow-violet: 0 0 20px rgba(191,95,255,0.35), 0 0 60px rgba(191,95,255,0.1);
}

/* ---- Text Gradient ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- CTA Buttons ---- */
.cta-btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--glow-cyan);
  text-decoration: none;
  display: inline-block;
}

.cta-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.cta-btn-primary:hover::before { left: 100%; }
.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,245,255,0.5), 0 0 80px rgba(0,245,255,0.15);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
  border: 2px solid var(--cyan-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn-secondary:hover {
  background: rgba(6,182,212,0.1);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.cta-btn-ghost {
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  border: 1px solid rgba(6,182,212,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn-ghost:hover {
  background: rgba(6,182,212,0.08);
  border-color: var(--cyan);
}

.cta-btn-ghost-violet {
  background: transparent;
  color: var(--violet-dim);
  font-weight: 600;
  border: 1px solid rgba(139,92,246,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-btn-ghost-violet:hover {
  background: rgba(139,92,246,0.08);
  border-color: var(--violet-dim);
}

/* ---- Hero ---- */
.hero-section { min-height: 100vh; }

.hero-bg {
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.parallax-active {
  transform: scale(1);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5,10,20,0.65) 0%,
    rgba(5,10,20,0.45) 40%,
    rgba(5,10,20,0.85) 100%
  );
}

/* Circuit pattern background */
.circuit-pattern {
  background-image:
    linear-gradient(rgba(0,245,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Light Trails ---- */
.light-trail {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: trail-float 8s ease-in-out infinite;
}

.light-trail-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,245,255,0.12) 0%, transparent 70%);
  top: 10%; left: 5%;
  animation-delay: 0s;
}

.light-trail-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(191,95,255,0.10) 0%, transparent 70%);
  top: 30%; right: 5%;
  animation-delay: -3s;
}

.light-trail-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,245,255,0.08) 0%, transparent 70%);
  bottom: 15%; left: 40%;
  animation-delay: -5s;
}

@keyframes trail-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.7; }
  33% { transform: translateY(-30px) translateX(20px); opacity: 1; }
  66% { transform: translateY(20px) translateX(-20px); opacity: 0.5; }
}

/* ---- Bonus Badge ---- */
.bonus-badge {
  background: linear-gradient(135deg, rgba(0,245,255,0.3), rgba(191,95,255,0.3));
  padding: 2px;
  border-radius: 18px;
  box-shadow: var(--glow-violet);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,245,255,0.35), 0 0 60px rgba(0,245,255,0.1); }
  50% { box-shadow: 0 0 40px rgba(191,95,255,0.5), 0 0 100px rgba(191,95,255,0.2); }
}

/* ---- Section Headers ---- */
.section-header h2 {
  position: relative;
  display: inline-block;
}

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

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,245,255,0.1);
}

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

.provider-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: #a78bfa;
  transition: all 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(0,245,255,0.1);
  border-color: rgba(0,245,255,0.3);
  color: #22d3ee;
  transform: scale(1.05);
}

.provider-sm { font-size: 0.75rem; }
.provider-md { font-size: 0.875rem; }
.provider-lg { font-size: 1rem; font-weight: 600; }
.provider-xl { font-size: 1.125rem; font-weight: 700; }

/* ---- Step Cards ---- */
.step-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: white;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.step-badge-violet {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: var(--glow-violet);
}

.step-card {
  padding-top: 2rem;
  transition: transform 0.3s ease;
}

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

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

.games-marquee {
  display: flex;
  gap: 20px;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
  padding: 10px 0;
}

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

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

.game-card {
  width: 220px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark-700);
  border: 1px solid rgba(139,92,246,0.2);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
  border-color: rgba(0,245,255,0.4);
  transform: scale(1.03);
}

.game-card-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--dark-600);
}

.game-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-img-wrap img { transform: scale(1.08); }

.game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,10,20,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay { opacity: 1; }

.game-card-body {
  padding: 12px 14px;
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.promo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, rgba(0,245,255,0.2), rgba(191,95,255,0.2));
  border: 1px solid rgba(0,245,255,0.3);
  color: #22d3ee;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-badge-violet {
  border-color: rgba(139,92,246,0.4);
  color: #a78bfa;
  background: rgba(139,92,246,0.15);
}

.promo-badge-gold {
  border-color: rgba(234,179,8,0.4);
  color: #facc15;
  background: rgba(234,179,8,0.1);
}

/* ---- FAQ ---- */
.faq-item { transition: border-color 0.2s ease; }
.faq-item:hover { border-color: rgba(0,245,255,0.2); }
.faq-trigger { background: none; border: none; cursor: pointer; }
.faq-icon { transition: transform 0.3s ease; }

/* ---- Prose Styling ---- */
.prose {
  color: #d1d5db;
  max-width: 100%;
}

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

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

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: #9ca3af;
}

.prose a {
  color: #22d3ee;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover { color: #a78bfa; }

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  color: #9ca3af;
}

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

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

.prose blockquote {
  border-left: 4px solid #8b5cf6;
  padding-left: 1em;
  color: #6b7280;
  font-style: italic;
  margin: 1.5em 0;
}

.prose strong { color: #e5e7eb; font-weight: 600; }

.prose code {
  background: rgba(139,92,246,0.1);
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose pre {
  background: #0a1224;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(139,92,246,0.2);
}

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

/* Horizontal scroll for markdown tables on mobile (see layouts/_markup/render-table.html) */
.article-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 1.5em;
}

.prose .article-table-scroll table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
}

.prose th {
  background: #0f1b35;
  color: #22d3ee;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(139,92,246,0.3);
  font-weight: 600;
}

.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,92,246,0.1);
  color: #9ca3af;
}

.prose tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan-dim), var(--violet-dim));
  border-radius: 3px;
}

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

/* ---- Parallax (JS triggered) ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { will-change: transform; }
}

/* ---- Animations on scroll (basic fade-in) ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.6s ease forwards;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .games-marquee { gap: 12px; }
  .game-card { width: 180px; }
  .game-card-img-wrap { height: 130px; }
}
