/* ============================================================
   StepSino Casino — Custom CSS
   Golden Path Theme: Deep Sapphire + Emerald + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --gold-300: #fde68a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --sapphire-800: #1e3a5f;
  --sapphire-900: #0f2340;
  --emerald-700: #047857;
  --casino-dark: #080e1a;
  --casino-darker: #050b14;
  --casino-card: #0f1d33;
  --casino-border: #1e3a5f;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--casino-dark);
  color: #f1f5f9;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--casino-darker); }
::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-bg {
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 11, 20, 0.92) 0%,
    rgba(8, 14, 26, 0.80) 40%,
    rgba(15, 35, 64, 0.70) 70%,
    rgba(5, 11, 20, 0.90) 100%
  );
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(251, 191, 36, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(4, 120, 87, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* ---- Bonus Badge Box ---- */
.bonus-badge-box {
  background: linear-gradient(135deg, rgba(15, 35, 64, 0.95) 0%, rgba(8, 14, 26, 0.98) 100%);
  border: 2px solid var(--gold-500);
  box-shadow:
    0 0 40px rgba(251, 191, 36, 0.25),
    0 0 80px rgba(251, 191, 36, 0.10),
    inset 0 1px 0 rgba(251, 191, 36, 0.20);
  backdrop-filter: blur(12px);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(251,191,36,0.25), 0 0 80px rgba(251,191,36,0.10), inset 0 1px 0 rgba(251,191,36,0.20); }
  50% { box-shadow: 0 0 60px rgba(251,191,36,0.40), 0 0 100px rgba(251,191,36,0.20), inset 0 1px 0 rgba(251,191,36,0.30); }
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-600) 100%);
  color: var(--casino-dark);
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(251,191,36,0.35);
}

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

.cta-primary:hover::before { left: 100%; }
.cta-primary:hover {
  background: linear-gradient(135deg, #fde68a 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  box-shadow: 0 8px 32px rgba(251,191,36,0.50);
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold-400);
  border: 2px solid var(--gold-400);
  font-weight: 700;
  transition: all 0.3s ease;
}
.cta-secondary:hover {
  background: rgba(251,191,36,0.10);
  box-shadow: 0 0 20px rgba(251,191,36,0.30);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--gold-400);
  background: rgba(251,191,36,0.08);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.mobile-nav-link:hover {
  color: var(--gold-400);
  background: rgba(251,191,36,0.08);
  border-left-color: var(--gold-400);
  padding-left: 1.25rem;
}

/* ---- Logo Icon ---- */
.logo-icon {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 2px 10px rgba(251,191,36,0.40);
}

/* ---- Language Button ---- */
.lang-btn {
  background: rgba(15,29,51,0.80);
  border: 1px solid var(--casino-border);
  border-radius: 0.5rem;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--gold-500); color: var(--gold-400); }

/* ---- Burger Button ---- */
.burger-btn {
  cursor: pointer;
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
}
.burger-btn:hover { border-color: var(--gold-500); }
.burger-btn:hover .burger-line { background-color: var(--gold-400); }

/* ============================================================
   GAMES MARQUEE
   ============================================================ */
.games-marquee {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

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

.game-card {
  border: 1px solid var(--casino-border);
  transition: all 0.3s ease;
  background: var(--casino-card);
}

.game-card:hover {
  border-color: var(--gold-500);
  box-shadow: 0 8px 32px rgba(251,191,36,0.20);
  transform: translateY(-4px);
}

/* ============================================================
   STEP CARDS
   ============================================================ */
.step-card {
  background: linear-gradient(135deg, var(--casino-card) 0%, rgba(30, 58, 95, 0.30) 100%);
  border: 1px solid var(--casino-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover { border-color: var(--gold-500); transform: translateY(-6px); box-shadow: 0 16px 48px rgba(251,191,36,0.15); }
.step-card:hover::before { opacity: 1; }

.step-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--casino-dark);
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: 0 0 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(251,191,36,0.40);
}

/* ============================================================
   PROMO CARDS
   ============================================================ */
.promo-card {
  background: linear-gradient(135deg, var(--casino-card) 0%, rgba(15, 29, 51, 0.80) 100%);
  border: 1px solid var(--casino-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(251,191,36,0.06), transparent 60%);
  pointer-events: none;
}
.promo-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(251,191,36,0.15);
}

/* ============================================================
   REVIEW BLOCKS
   ============================================================ */
.review-block {
  background: linear-gradient(135deg, var(--casino-card) 0%, rgba(15, 35, 64, 0.50) 100%);
  border: 1px solid var(--casino-border);
  transition: all 0.3s ease;
}
.review-block:hover {
  border-color: rgba(251,191,36,0.40);
  box-shadow: 0 8px 32px rgba(251,191,36,0.10);
}

/* ---- Provider Word Cloud ---- */
.word-cloud {
  line-height: 1.4;
}
.provider-tag {
  color: var(--gold-300);
  transition: all 0.2s ease;
  cursor: default;
  opacity: 0.85;
}
.provider-tag:hover {
  color: var(--gold-400);
  opacity: 1;
  text-shadow: 0 0 12px rgba(251,191,36,0.50);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(251,191,36,0.40);
}
.faq-toggle {
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-answer {
  border-top: 1px solid var(--casino-border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-link {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}
.footer-link:hover {
  color: var(--gold-400);
  border-bottom-color: rgba(251,191,36,0.30);
  padding-left: 0.25rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

/* ============================================================
   PARALLAX EFFECT (lightweight CSS approach)
   ============================================================ */
@media (min-width: 768px) {
  .hero-section {
    perspective: 1000px;
  }
  .hero-bg {
    will-change: transform;
  }
}

/* Parallax via JS hook */
.parallax-element {
  transition: transform 0.1s linear;
}

/* ============================================================
   SHADOWS
   ============================================================ */
.shadow-gold {
  box-shadow: 0 4px 24px rgba(251,191,36,0.35);
}

/* ============================================================
   PROSE STYLING
   ============================================================ */
.prose-casino {
  color: #cbd5e1;
  max-width: 100%;
}

/* Horizontal scroll only around markdown tables (layouts/_markup/render-table.html) */
.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 h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--gold-400);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.75em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; border-bottom: 1px solid var(--casino-border); padding-bottom: 0.4rem; }
.prose-casino h3 { font-size: 1.3rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  line-height: 1.75;
  margin-bottom: 1.1em;
  color: #cbd5e1;
}

.prose-casino a {
  color: var(--gold-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.prose-casino a:hover { color: var(--gold-300); }

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1em;
  color: #cbd5e1;
}
.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 var(--gold-500);
  padding: 0.75rem 1.25rem;
  background: rgba(15,29,51,0.60);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #e2e8f0;
  margin: 1.5em 0;
  font-style: italic;
}

.prose-casino table {
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5em 0;
}
.prose-casino thead tr {
  background: var(--sapphire-900);
  color: var(--gold-400);
}
.prose-casino th,
.prose-casino td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--casino-border);
  text-align: left;
}
.prose-casino tbody tr:nth-child(even) {
  background: rgba(15,29,51,0.50);
}
.prose-casino tbody tr:hover {
  background: rgba(30,58,95,0.40);
}

.prose-casino code {
  background: rgba(15,29,51,0.80);
  color: var(--gold-300);
  padding: 0.15em 0.45em;
  border-radius: 0.3rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid var(--casino-border);
  margin: 2em 0;
}

.prose-casino strong { color: #f1f5f9; font-weight: 700; }
.prose-casino em { color: var(--gold-300); font-style: italic; }

/* ============================================================
   PARALLAX SCROLL (JavaScript powered)
   ============================================================ */
.hero-parallax {
  will-change: transform;
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

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

.animate-float { animation: floatY 3s ease-in-out infinite; }
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.6s ease forwards; }

/* Shimmer text effect */
.text-shimmer {
  background: linear-gradient(90deg, var(--gold-400), #fde68a, var(--gold-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Gold glowing pulse for icons */
@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(251,191,36,0.40)); }
  50% { filter: drop-shadow(0 0 10px rgba(251,191,36,0.80)); }
}
.icon-glow { animation: iconGlow 2.5s ease-in-out infinite; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 640px) {
  .bonus-badge-box { padding: 1.25rem 1.5rem; }
  .step-badge { width: 2rem; height: 2rem; font-size: 0.875rem; }
}

/* ============================================================
   PARALLAX JS SCRIPT HOOK
   ============================================================ */
/* Inline script for hero parallax is in baseof layout */

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* ============================================================
   LANG DROPDOWN ANIMATION
   ============================================================ */
.lang-dropdown {
  animation: fadeInUp 0.15s ease;
}

/* ============================================================
   TABLE WRAPPERS (global)
   ============================================================ */
.overflow-x-auto table {
  min-width: 100%;
}
