/* =============================================================
   NanaCasino — Custom CSS & Animations
   Northern Fortune Theme: Icy Sapphire + Gold
   ============================================================= */

/* ── Base reset & global ─────────────────────────────── */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Aurora Wave Animations ──────────────────────────── */
@keyframes aurora-drift {
  0%   { transform: translateX(0)   scaleY(1);   opacity: 0.18; }
  50%  { transform: translateX(-30px) scaleY(1.08); opacity: 0.28; }
  100% { transform: translateX(0)   scaleY(1);   opacity: 0.18; }
}

@keyframes aurora-drift-2 {
  0%   { transform: translateX(0)   scaleY(1);   opacity: 0.12; }
  50%  { transform: translateX(20px)  scaleY(1.06); opacity: 0.22; }
  100% { transform: translateX(0)   scaleY(1);   opacity: 0.12; }
}

@keyframes aurora-drift-3 {
  0%   { transform: translateX(0)   scaleY(1);   opacity: 0.08; }
  50%  { transform: translateX(-15px) scaleY(1.04); opacity: 0.15; }
  100% { transform: translateX(0)   scaleY(1);   opacity: 0.08; }
}

.aurora-wave-1 {
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 120%;
  height: 200px;
  background: linear-gradient(90deg, transparent, rgba(0, 201, 177, 0.25), rgba(30, 144, 255, 0.2), transparent);
  border-radius: 50%;
  filter: blur(40px);
  animation: aurora-drift 10s ease-in-out infinite;
  pointer-events: none;
}

.aurora-wave-2 {
  position: absolute;
  bottom: 35%;
  left: -5%;
  width: 110%;
  height: 160px;
  background: linear-gradient(90deg, transparent, rgba(123, 79, 196, 0.2), rgba(0, 201, 177, 0.18), transparent);
  border-radius: 50%;
  filter: blur(50px);
  animation: aurora-drift-2 14s ease-in-out infinite;
  pointer-events: none;
}

.aurora-wave-3 {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.15), rgba(201, 168, 76, 0.1), transparent);
  border-radius: 50%;
  filter: blur(60px);
  animation: aurora-drift-3 18s ease-in-out infinite;
  pointer-events: none;
}

/* ── Sparkle Particles ───────────────────────────────── */
@keyframes sparkle-blink {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%       { opacity: 1; transform: scale(1.2); }
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #f0c940, transparent 70%);
  border-radius: 50%;
  animation: sparkle-blink 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { animation-delay: 0s; }
.sparkle:nth-child(2) { animation-delay: 0.8s; }
.sparkle:nth-child(3) { animation-delay: 1.6s; }
.sparkle:nth-child(4) { animation-delay: 2.4s; }
.sparkle:nth-child(5) { animation-delay: 1.2s; }
.sparkle:nth-child(6) { animation-delay: 0.4s; }

/* ── Bonus Badge Glow ────────────────────────────────── */
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(201,168,76,0.4), 0 0 30px rgba(201,168,76,0.15); }
  50%       { box-shadow: 0 0 30px rgba(201,168,76,0.7), 0 0 60px rgba(201,168,76,0.3), 0 0 90px rgba(201,168,76,0.1); }
}

.bonus-badge-glow {
  animation: badge-glow 3s ease-in-out infinite;
}

/* ── CTA Button Pulse ────────────────────────────────── */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

.cta-primary {
  animation: cta-pulse 2.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shine-sweep 3s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%   { left: -100%; }
  50%, 100% { left: 120%; }
}

/* ── Games Marquee ───────────────────────────────────── */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.games-marquee {
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
  width: max-content;
}

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

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

.provider-tag {
  color: #8bafc8;
  cursor: default;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.provider-tag:hover {
  color: #f0c940;
  transform: scale(1.08);
}

/* ── Review Cards ────────────────────────────────────── */
.review-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

/* ── Promo Cards ─────────────────────────────────────── */
.promo-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
}

/* ── Step Cards / Numbered Badges ────────────────────── */
.step-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.step-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-4px);
}

.step-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a5c, #112240);
  border: 2px solid #1e90ff;
  color: #1e90ff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.5);
}

.step-badge-gold {
  border-color: #c9a84c;
  color: #c9a84c;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
}

/* ── Game Cards ──────────────────────────────────────── */
.game-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
  border-color: #c9a84c;
  transform: translateY(-4px);
}

/* ── FAQ Accordion ───────────────────────────────────── */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(201, 168, 76, 0.4);
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.faq-trigger:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

.faq-answer {
  transition: opacity 0.2s ease;
}

.faq-answer:not(.hidden) {
  opacity: 1;
}

/* ── Parallax Hero ───────────────────────────────────── */
@keyframes parallax-float {
  0%, 100% { background-position: center 0%; }
  50%       { background-position: center 5%; }
}

#hero {
  animation: parallax-float 20s ease-in-out infinite;
}

/* ── Tables ──────────────────────────────────────────── */
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

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

/* ── Prose Casino (content pages) ────────────────────── */
.prose-casino {
  color: #e8f0f8;
  font-size: 0.9375rem;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #c9a84c;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.6em;
}

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

.prose-casino p {
  margin-bottom: 1.2em;
  color: #e8f0f8;
}

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

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

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

.prose-casino li {
  margin-bottom: 0.4em;
}

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

.prose-casino blockquote {
  border-left: 4px solid #c9a84c;
  padding-left: 1rem;
  margin-left: 0;
  color: #8bafc8;
  font-style: italic;
}

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

.prose-casino em {
  color: #b8d9e8;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #1a3a5c;
  margin: 2em 0;
}

/* Prose table scrollable wrapper */
.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-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose-content table th {
  background-color: #1a3a5c;
  color: #c9a84c;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
}

.prose-content table td {
  padding: 0.6rem 1rem;
  color: #8bafc8;
  border-bottom: 1px solid rgba(26, 58, 92, 0.5);
}

.prose-content table tr:hover td {
  background-color: rgba(26, 58, 92, 0.2);
}

/* Wrap every table in prose-content for responsive scroll */
.prose-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

/* ── Sticky header shadow on scroll ─────────────────── */
#site-header {
  transition: box-shadow 0.3s ease;
}

/* ── Scrollbar Styling (webkit) ──────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #1a3a5c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

/* ── Utility ─────────────────────────────────────────── */
.text-balance {
  text-wrap: balance;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* ── Mobile responsiveness helpers ──────────────────── */
@media (max-width: 640px) {
  .bonus-badge-glow {
    padding: 1rem 1.5rem;
  }

  .step-card {
    margin-top: 1.5rem;
  }

  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 0.5rem 0.75rem;
  }
}

/* ── Print resets ────────────────────────────────────── */
@media print {
  .aurora-wave-1,
  .aurora-wave-2,
  .aurora-wave-3,
  .sparkle-container {
    display: none;
  }
}
