/* ==========================================================
   NanaCasino – Custom CSS
   Aurora Fortune Theme: Icy Sapphire + Radiant Gold
========================================================== */

/* ---- Base Reset & Global ---- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

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

/* ---- Typography ---- */
a {
  text-decoration: none;
}

/* ---- Container Max Width ---- */
.max-w-site {
  max-width: 1440px;
}

/* ============================================================
   AURORA ANIMATIONS
============================================================ */
.aurora-container {
  overflow: hidden;
}

.aurora-stripe {
  position: absolute;
  width: 200%;
  height: 180px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(60px);
  animation: auroraFloat 12s ease-in-out infinite alternate;
}

.aurora-stripe-1 {
  top: 10%;
  left: -30%;
  background: linear-gradient(90deg, #00c6ff, #7b2ff7);
  animation-duration: 10s;
}

.aurora-stripe-2 {
  top: 40%;
  left: 10%;
  background: linear-gradient(90deg, #00e676, #1a6fd4);
  animation-duration: 14s;
  animation-delay: -4s;
}

.aurora-stripe-3 {
  top: 65%;
  left: -10%;
  background: linear-gradient(90deg, #d4a843, #00c6ff);
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes auroraFloat {
  0%   { transform: translateX(0) scaleY(1); }
  50%  { transform: translateX(8%) scaleY(1.15); }
  100% { transform: translateX(-6%) scaleY(0.9); }
}

/* ============================================================
   MARQUEE ANIMATION (Game Strip)
============================================================ */
.marquee-outer {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  animation: marqueeScroll 28s linear infinite;
}

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

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

/* ============================================================
   PARALLAX HERO
============================================================ */
#hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}

/* ============================================================
   SHADOW UTILITIES
============================================================ */
.shadow-gold {
  box-shadow: 0 0 24px 0 rgba(212, 168, 67, 0.35), 0 4px 16px 0 rgba(0,0,0,0.4);
}

.shadow-gold:hover {
  box-shadow: 0 0 36px 0 rgba(240, 200, 90, 0.5), 0 6px 24px 0 rgba(0,0,0,0.5);
}

/* ============================================================
   BONUS BADGE BOX
============================================================ */
.bonus-badge-box {
  position: relative;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px 0 rgba(212, 168, 67, 0.3); }
  50%       { box-shadow: 0 0 40px 8px rgba(212, 168, 67, 0.55); }
}

/* ============================================================
   REVIEW CARDS
============================================================ */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26, 111, 212, 0.2);
}

/* ============================================================
   STEP CARDS
============================================================ */
.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.step-badge {
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.5);
}

/* ============================================================
   PROMO CARDS
============================================================ */
.promo-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: #3a8fef;
}

/* ============================================================
   GAME CARDS
============================================================ */
.game-card {
  cursor: pointer;
}

/* ============================================================
   PROVIDER WORD CLOUD
============================================================ */
.provider-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  transform: scale(1.1);
}

/* ============================================================
   NAV & HEADER
============================================================ */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

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

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

/* ============================================================
   CTA BUTTONS
============================================================ */
.cta-btn-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
}

.cta-btn-secondary {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cta-btn-secondary:hover {
  transform: translateY(-2px);
}

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

.faq-item:hover {
  border-color: #1a6fd4;
}

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

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

/* ============================================================
   PROSE / ARTICLE CONTENT STYLING
============================================================ */
.prose-casino {
  color: #e8f0fe;
  max-width: none;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #f0c85a;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: Georgia, serif;
}

.prose-casino h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f0c85a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
  border-bottom: 1px solid #1a3a6e;
  padding-bottom: 0.4rem;
}

.prose-casino h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #3a8fef;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.prose-casino h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4a843;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose-casino p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #e8f0fe;
}

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

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

.prose-casino ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #e8f0fe;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #e8f0fe;
}

.prose-casino li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

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

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

.prose-casino em {
  color: #8baac8;
  font-style: italic;
}

.prose-casino code {
  background: #0d1f3c;
  color: #00c6ff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0d1f3c;
  border: 1px solid #1a3a6e;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

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

/* ---- Table in prose ---- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
  color: #e8f0fe;
}

.prose-casino thead tr {
  background: rgba(26, 111, 212, 0.25);
}

.prose-casino th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  color: #f0c85a;
  border: 1px solid #1a3a6e;
}

.prose-casino td {
  padding: 0.5rem 0.8rem;
  border: 1px solid #1a3a6e;
  color: #e8f0fe;
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(9, 21, 40, 0.5);
}

.prose-casino tbody tr:hover {
  background: rgba(26, 111, 212, 0.1);
}

/* ============================================================
   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;
}

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

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

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

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

/* ============================================================
   RESPONSIVE UTILITIES
============================================================ */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.75rem; }
  .prose-casino h2 { font-size: 1.35rem; }
  .prose-casino h3 { font-size: 1.15rem; }
}

/* Override Tailwind display for proper table rendering in articles */
.prose-casino table {
  display: table;
}

.prose-casino table thead,
.prose-casino table tbody {
  display: table-header-group;
}

.prose-casino table tbody {
  display: table-row-group;
}

/* Overflow wrapper for inline tables outside prose */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
