/* =============================================================
   AndromedaSino Casino – custom.css
   Northern Galaxy Theme: Icy Sapphire + Silver + Deep Starfield
   ============================================================= */

/* ── Global ── */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #060d1a;
  color: #e2e8f0;
  word-break: break-word;
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ── Container ── */
.max-w-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
}

.hero-bg {
  background-image:
    url('/images/hero.webp'),
    radial-gradient(ellipse at 20% 50%, #0a1f44 0%, #060d1a 70%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.45);
  transform: scale(1.05);
  transition: transform 0.6s ease-out;
}

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

/* Parallax effect via JS is optional; CSS handles static fallback */

/* Starfield overlay: procedural CSS stars */
.starfield-overlay {
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 25%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 75%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 45% 55%, rgba(91,164,207,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 45%, rgba(56,178,172,0.3) 0%, transparent 100%);
  animation: twinkle 8s infinite alternate ease-in-out;
}

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

/* Aurora wave at bottom of hero */
.aurora-wave {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 178, 172, 0.08) 40%,
    rgba(37, 99, 235, 0.12) 70%,
    rgba(6, 13, 26, 0.9) 100%
  );
  animation: aurora-shift 12s infinite alternate ease-in-out;
}

@keyframes aurora-shift {
  0%   { opacity: 0.6; transform: scaleX(1); }
  50%  { opacity: 1;   transform: scaleX(1.02); }
  100% { opacity: 0.7; transform: scaleX(0.99); }
}

/* ── Bonus Badge ── */
.bonus-badge-inner {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(15, 31, 56, 0.98) 100%);
  border: 2px solid #2563eb;
  box-shadow:
    0 0 30px rgba(37, 99, 235, 0.4),
    0 0 60px rgba(91, 164, 207, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: badge-glow 3s infinite alternate ease-in-out;
}

@keyframes badge-glow {
  0%   { box-shadow: 0 0 20px rgba(37,99,235,0.3), 0 0 40px rgba(91,164,207,0.1); }
  100% { box-shadow: 0 0 40px rgba(37,99,235,0.6), 0 0 80px rgba(56,178,172,0.2); }
}

/* =============================================================
   CTA BUTTONS
   ============================================================= */
.cta-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a5f 100%);
  color: #ffffff;
  border: 1px solid rgba(91, 164, 207, 0.5);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.cta-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

.cta-btn-primary:active {
  transform: translateY(0);
}

.cta-btn-secondary {
  background: transparent;
  color: #5ba4cf;
  border: 2px solid #5ba4cf;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.cta-btn-secondary:hover {
  background: rgba(91, 164, 207, 0.15);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* =============================================================
   REVIEW SECTION
   ============================================================= */
.review-card {
  background: linear-gradient(135deg, #0f1f38 0%, #0a1628 100%);
  border: 1px solid #1e3a5f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

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

.provider-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(91, 164, 207, 0.3);
  color: #94a3b8;
  border-radius: 9999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #e2e8f0;
  border-color: #5ba4cf;
}

.provider-tag--lg {
  font-size: 1rem;
  padding: 0.35rem 1rem;
  color: #c0c8d8;
  background: rgba(37, 99, 235, 0.22);
}

.provider-tag--sm {
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  color: #64748b;
}

/* =============================================================
   GAMES MARQUEE
   ============================================================= */
.games-marquee-wrapper {
  position: relative;
}

.games-marquee-track {
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}

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

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

.game-card {
  background: #0f1f38;
  border: 1px solid #1e3a5f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
  border-color: #5ba4cf;
}

.game-thumb {
  background-color: #1e3a5f;
  background-size: cover;
  background-position: center;
  position: relative;
}

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,13,26,0.8) 100%);
}

/* =============================================================
   STEP-BY-STEP GUIDE
   ============================================================= */
.step-card {
  background: linear-gradient(135deg, #0f1f38 0%, #0a1628 100%);
  border: 1px solid #1e3a5f;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
}

.step-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38b2ac);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
  border: 2px solid #060d1a;
}

/* =============================================================
   PROMO CARDS
   ============================================================= */
.promo-card {
  background: linear-gradient(135deg, #0f1f38 0%, #0a1628 100%);
  border: 1px solid #1e3a5f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
  border-color: #5ba4cf;
}

.promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(91, 164, 207, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   PAYMENT TABLE
   ============================================================= */
.payment-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.payment-table th,
.payment-table td {
  border-bottom: 1px solid #1e3a5f;
}

.payment-table tr:last-child td {
  border-bottom: none;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-item {
  background: #0f1f38;
  border: 1px solid #1e3a5f;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #5ba4cf;
}

.faq-question {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #5ba4cf;
}

.faq-answer {
  border-top: 1px solid rgba(30, 58, 95, 0.6);
}

.faq-icon {
  font-size: 0.5rem;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: scale(1.4);
  color: #38b2ac;
}

/* =============================================================
   PROSE STYLING (single pages)
   ============================================================= */
.prose-casino {
  color: #cbd5e1;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #e2e8f0;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  font-weight: 800;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; border-bottom: 1px solid #1e3a5f; padding-bottom: 0.4em; }
.prose-casino h3 { font-size: 1.2rem; color: #5ba4cf; }

.prose-casino p {
  margin-bottom: 1.2em;
  word-break: break-word;
}

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

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

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

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.5em;
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.5em;
}

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

.prose-casino blockquote {
  border-left: 3px solid #2563eb;
  padding-left: 1em;
  color: #94a3b8;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5em 0;
  min-width: 480px;
}

.prose-casino th {
  background: #1e3a5f;
  color: #e2e8f0;
  font-weight: 700;
  text-align: left;
  padding: 0.6em 0.9em;
  border: 1px solid #1e3a5f;
}

.prose-casino td {
  padding: 0.6em 0.9em;
  border: 1px solid #1e3a5f;
  color: #cbd5e1;
  background: #0f1f38;
}

.prose-casino tr:nth-child(even) td {
  background: #0a1628;
}

/* Mandatory prose table scroll classes */
.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;
}

/* Default prose (Tailwind .prose .prose-invert override) */
.prose h1 { color: #e2e8f0; }
.prose h2 { color: #e2e8f0; }
.prose h3 { color: #5ba4cf; }
.prose p  { color: #cbd5e1; }
.prose li { color: #cbd5e1; }
.prose a  { color: #5ba4cf; }
.prose strong { color: #e2e8f0; }
.prose code {
  background: rgba(30, 58, 95, 0.6);
  color: #38b2ac;
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 400px;
}

.prose thead th {
  background: #1e3a5f;
  color: #e2e8f0;
  padding: 0.6em 0.9em;
  border: 1px solid #2563eb;
}

.prose tbody td {
  padding: 0.6em 0.9em;
  border: 1px solid #1e3a5f;
  color: #cbd5e1;
}

.prose tbody tr:nth-child(even) td {
  background: #0a1628;
}

/* ── Table wrapper (all tables) ── */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* =============================================================
   HEADER
   ============================================================= */
#site-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(10, 22, 40, 0.97);
}

/* Burger animation lines */
.burger-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =============================================================
   SECTION DIVIDERS / BACKGROUNDS
   ============================================================= */
.review-section {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
    #060d1a;
}

/* =============================================================
   PARALLAX HELPER
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .parallax-hero {
    transform: translateZ(0);
    will-change: transform;
  }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }

  .bonus-badge-inner {
    padding: 1.25rem;
  }

  .step-badge {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .games-marquee-track {
    animation-duration: 20s;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}

/* =============================================================
   SCROLLBAR (Webkit)
   ============================================================= */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5ba4cf;
}
