/* ==========================================================
   EmberBet Casino – Custom CSS
   Northern Blaze Theme: Amber-Gold + Icy Sapphire + Dark
   ========================================================== */

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0c14;
  color: #f3f4f6;
  word-break: break-word;
  overflow-x: hidden;
}

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

/* ----------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------- */
.font-display {
  font-family: 'Orbitron', sans-serif;
}

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */
.max-w-8xl {
  max-width: 1440px;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero-bg {
  background-color: #0a0c14;
}

.hero-img-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

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

.hero-title-glow {
  text-shadow: 0 0 40px rgba(255, 156, 46, 0.25), 0 0 80px rgba(59, 130, 246, 0.12);
}

/* Aurora animated overlay */
.aurora-overlay {
  background: radial-gradient(
    ellipse 120% 60% at 30% 80%,
    rgba(13, 148, 136, 0.08) 0%,
    transparent 60%
  ),
  radial-gradient(
    ellipse 80% 50% at 80% 20%,
    rgba(59, 130, 246, 0.07) 0%,
    transparent 55%
  );
  animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { opacity: 0.6; transform: translateY(0px) scale(1);   }
  50%  { opacity: 1;   transform: translateY(-8px) scale(1.01); }
  100% { opacity: 0.7; transform: translateY(4px) scale(0.99); }
}

/* Ember sparks */
.sparks-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.spark {
  animation: sparkFloat 4s ease-in-out infinite;
  transform-origin: center;
}
.spark.s1 { animation-duration: 4.2s; animation-delay: 0s; }
.spark.s2 { animation-duration: 3.8s; animation-delay: 0.5s; }
.spark.s3 { animation-duration: 5.1s; animation-delay: 1s; }
.spark.s4 { animation-duration: 4.6s; animation-delay: 0.3s; }
.spark.s5 { animation-duration: 3.5s; animation-delay: 1.2s; }
.spark.s6 { animation-duration: 4.9s; animation-delay: 0.8s; }
.spark.s7 { animation-duration: 4.3s; animation-delay: 0.2s; }
.spark.s8 { animation-duration: 5.5s; animation-delay: 1.5s; }

@keyframes sparkFloat {
  0%   { transform: translateY(0px) scale(1);   opacity: 0.8; }
  50%  { transform: translateY(-30px) scale(1.3); opacity: 0.4; }
  100% { transform: translateY(-60px) scale(0.5); opacity: 0; }
}

/* ----------------------------------------------------------
   Bonus Badge
   ---------------------------------------------------------- */
.bonus-badge {
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.3),
    0 0 30px rgba(255, 124, 8, 0.2),
    0 20px 60px rgba(0,0,0,0.5);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(251,191,36,0.3), 0 0 30px rgba(255,124,8,0.2), 0 20px 60px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 0 0 2px rgba(251,191,36,0.5), 0 0 50px rgba(255,124,8,0.35), 0 20px 60px rgba(0,0,0,0.5); }
}

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

.btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: inherit;
  animation: btnPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnPulse {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  50%       { opacity: 1; transform: scale(1.02); }
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.site-header {
  box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: #fbbf24;
  background-color: rgba(255,124,8,0.1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-link:hover {
  color: #fbbf24;
  background-color: rgba(255,124,8,0.1);
}

/* ----------------------------------------------------------
   Section helpers
   ---------------------------------------------------------- */
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,124,8,0.15), rgba(59,130,246,0.12));
  border: 1px solid rgba(251,191,36,0.25);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-sub {
  color: #9ca3af;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

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

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

/* ----------------------------------------------------------
   Provider word cloud
   ---------------------------------------------------------- */
.provider-tag {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.5);
  color: #bfdbfe;
}

/* ----------------------------------------------------------
   Game cards
   ---------------------------------------------------------- */
.game-card {
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.game-card:hover {
  box-shadow: 0 8px 30px rgba(255,124,8,0.2);
}

/* ----------------------------------------------------------
   Step cards
   ---------------------------------------------------------- */
.step-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.step-badge {
  box-shadow: 0 0 20px rgba(255,124,8,0.4);
}

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

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

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.faq-item {
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.faq-answer {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,124,8,0.08);
  border: 1px solid rgba(255,124,8,0.2);
  color: #d1d5db;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.quick-link:hover {
  background: rgba(255,124,8,0.18);
  border-color: rgba(255,124,8,0.45);
  color: #fbbf24;
}

/* ----------------------------------------------------------
   Tables (global)
   ---------------------------------------------------------- */
.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;
}

table {
  width: 100%;
  border-collapse: collapse;
  word-break: normal;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

th {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   Prose (single pages)
   ---------------------------------------------------------- */
.prose-casino {
  color: #d1d5db;
  line-height: 1.8;
  word-break: break-word;
}

.prose-casino h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.prose-casino h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #fbbf24;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.25;
}

.prose-casino h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose-casino h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose-casino a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

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

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

.prose-casino li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose-casino ul li {
  list-style-type: disc;
}

.prose-casino ol li {
  list-style-type: decimal;
}

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

.prose-casino blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-style: italic;
}

.prose-casino hr {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.prose-casino th {
  background-color: #1c2035;
  color: #fbbf24;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.prose-casino td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #d1d5db;
}

.prose-casino tr:nth-child(even) td {
  background-color: rgba(255,255,255,0.02);
}

.prose-casino tr:hover td {
  background-color: rgba(255,124,8,0.04);
}

.prose-casino img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
}

.prose-casino code {
  background: rgba(255,255,255,0.08);
  color: #93c5fd;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0f1220;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-casino pre code {
  background: none;
  padding: 0;
}

/* ----------------------------------------------------------
   Parallax helpers
   ---------------------------------------------------------- */
.parallax-section {
  will-change: transform;
}

/* ----------------------------------------------------------
   Marquee
   ---------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

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

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

/* ----------------------------------------------------------
   Scrollbar styling (WebKit)
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(251,191,36,0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251,191,36,0.5);
}

/* ----------------------------------------------------------
   Utility – glow rings
   ---------------------------------------------------------- */
.glow-gold {
  box-shadow: 0 0 20px rgba(251,191,36,0.35);
}

.glow-ember {
  box-shadow: 0 0 20px rgba(255,124,8,0.35);
}

.glow-sapphire {
  box-shadow: 0 0 20px rgba(59,130,246,0.35);
}

/* ----------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero-title-glow {
    font-size: 2rem;
  }

  th, td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
