/* ============================================
   iMoon Casino – Custom CSS & Animations
   Lunar Luxe Theme
   ============================================ */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #050b18;
  color: #c8d8f0;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================
   PROSE STYLING
   ============================================ */

.prose-casino {
  color: #b8c8e0;
  max-width: 100%;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; }
.prose-casino h3 { font-size: 1.3rem; }

.prose-casino p {
  margin-bottom: 1em;
  line-height: 1.75;
}

.prose-casino a {
  color: #4a9eff;
  text-decoration: underline;
}

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #4a9eff;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #b8c8e0;
  font-style: italic;
}

.prose-casino code {
  background: #0d2250;
  color: #7eb8ff;
  padding: 0.1em 0.4em;
  border-radius: 0.3em;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #0d2250;
  padding: 1em;
  border-radius: 0.5em;
  overflow-x: auto;
}

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

.prose-casino th {
  background: #1a3a7a;
  color: #ffffff;
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
}

.prose-casino td {
  padding: 0.65em 1em;
  border-bottom: 1px solid rgba(26, 58, 122, 0.4);
  color: #b8c8e0;
}

.prose-casino tr:hover td {
  background: rgba(13, 34, 80, 0.4);
}

.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;
}

/* ============================================
   STAR FIELD BACKGROUND
   ============================================ */

.star-field-bg {
  background-image:
    radial-gradient(circle, rgba(184, 200, 224, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(74, 158, 255, 0.4) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px;
  background-position: 0 0, 20px 20px;
}

.stars-container {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(74, 158, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(200, 216, 240, 0.5) 1px, transparent 1px);
  background-size: 200px 200px, 150px 150px, 100px 100px;
  background-position: 10px 10px, 50px 80px, 30px 50px;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.6; }
  100% { opacity: 0.3; }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
}

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

.hero-section:hover .hero-bg {
  transform: scale(1.0);
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.glow-box {
  box-shadow:
    0 0 20px rgba(74, 158, 255, 0.3),
    0 0 40px rgba(74, 158, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glow-text {
  text-shadow:
    0 0 10px rgba(74, 158, 255, 0.8),
    0 0 20px rgba(74, 158, 255, 0.4);
}

/* ============================================
   CTA BUTTON PULSE ANIMATION
   ============================================ */

.btn-pulse {
  position: relative;
  overflow: hidden;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  border-radius: inherit;
}

.btn-pulse:hover::after {
  transform: scale(1);
  opacity: 1;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(74, 158, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0); }
}

.btn-pulse {
  animation: pulseRing 2.5s ease-out infinite;
}

/* ============================================
   BONUS BADGE
   ============================================ */

.bonus-badge {
  position: relative;
  animation: floatBadge 3s ease-in-out infinite;
}

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

/* ============================================
   MARQUEE / GAME STRIP
   ============================================ */

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  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%); }
}

/* ============================================
   GAME CARD
   ============================================ */

.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.3);
}

/* ============================================
   PROMO CARDS
   ============================================ */

.promo-card {
  transition: all 0.3s ease;
}

.promo-card:hover {
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.2);
}

/* ============================================
   PROVIDER CLOUD
   ============================================ */

.provider-cloud {
  line-height: 2;
}

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

.provider-tag:hover {
  text-shadow: 0 0 8px currentColor;
  transform: scale(1.05);
}

/* ============================================
   STEP CARDS
   ============================================ */

.step-card {
  position: relative;
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -2rem;
  width: 4rem;
  height: 2px;
  background: linear-gradient(to right, #4a9eff, transparent);
  display: none;
}

@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    display: block;
  }
}

.step-badge {
  position: relative;
  z-index: 1;
}

/* ============================================
   REVIEW BLOCKS
   ============================================ */

.review-block {
  transition: all 0.3s ease;
}

.review-block:hover {
  border-color: rgba(74, 158, 255, 0.6);
  box-shadow: 0 4px 24px rgba(74, 158, 255, 0.15);
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  transition: all 0.2s ease;
}

.faq-toggle {
  cursor: pointer;
}

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

/* ============================================
   NAVBAR
   ============================================ */

#site-header {
  transition: background 0.3s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4a9eff;
  transition: width 0.3s ease;
}

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

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.lang-dropdown {
  transition: all 0.2s ease;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #050b18;
}

::-webkit-scrollbar-thumb {
  background: #1a3a7a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a9eff;
}

/* ============================================
   PARALLAX
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  .parallax-slow {
    will-change: transform;
  }
}

/* ============================================
   RESPONSIVE TABLES
   ============================================ */

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.home-table-frame {
  width: 100%;
  max-width: 100%;
}

.home-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  max-width: 100%;
}

.home-bonus-table {
  width: 100%;
}

.home-bonus-table th,
.home-bonus-table td {
  padding: 0.625rem 0.75rem;
}

.home-payments-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  margin: 0;
}

.home-payments-table th,
.home-payments-table td {
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .home-payments-table {
    min-width: 42rem;
    font-size: 0.875rem;
  }

  .home-payments-table th,
  .home-payments-table td {
    padding: 0.75rem 0.875rem;
  }

  .home-bonus-table th,
  .home-bonus-table td {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

/* ============================================
   ICON CIRCLE
   ============================================ */

.icon-circle {
  transition: all 0.3s ease;
}

.promo-card:hover .icon-circle {
  background: #0d2250;
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
}

/* ============================================
   AGE BADGE
   ============================================ */

.age-badge {
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

/* ============================================
   LOGO
   ============================================ */

.logo-link:hover span:last-child {
  text-shadow: 0 0 10px rgba(74, 158, 255, 0.7);
}

/* ============================================
   UTILITY
   ============================================ */

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

@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.25rem 1rem;
  }

  .hero-section {
    min-height: 90vh;
  }
}
