/* ============================================================
   Nana Casino — Custom CSS
   Covers: base resets, animations, prose, tables, utilities
   ============================================================ */

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

body {
  overflow-x: hidden;
  word-break: break-word;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1a0f;
}
::-webkit-scrollbar-thumb {
  background: #1a3a22;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* ─── Keyframes ─────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

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

@keyframes pulse_gold {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(251,191,36,0.4); }
  50%        { box-shadow: 0 0 28px 8px rgba(251,191,36,0.75); }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Animation Utility Classes ─────────────────────────────── */
.animate-marquee   { animation: marquee 30s linear infinite; }
.animate-pulse_gold { animation: pulse_gold 2s ease-in-out infinite; }
.animate-float     { animation: float 4s ease-in-out infinite; }
.animate-shimmer   { animation: shimmer 3s linear infinite; }
.animate-fade-up   { animation: fadeInUp 0.6s ease both; }

/* ─── Marquee Outer ──────────────────────────────────────────── */
.marquee-outer {
  overflow: hidden;
  width: 100%;
}
.marquee-inner {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}
.marquee-outer:hover .marquee-inner {
  animation-play-state: paused;
}

/* ─── CTA Buttons ────────────────────────────────────────────── */
.cta-primary {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #0a1a0f;
  border: none;
  position: relative;
  overflow: hidden;
}
.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}
.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(251,191,36,0.4);
}

.cta-secondary:hover {
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}

/* ─── Promo Cards ────────────────────────────────────────────── */
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ─── Game Cards ─────────────────────────────────────────────── */
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* ─── Step Cards ─────────────────────────────────────────────── */
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Provider Word Cloud ────────────────────────────────────── */
.word-cloud .provider-tag {
  cursor: default;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  line-height: 1.4;
}
.word-cloud .provider-tag:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

/* ─── Table Scrolling (prose) ────────────────────────────────── */
.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 (single.html content) ───────────────────────────── */
.prose-casino {
  color: #e8f5eb;
  max-width: 72ch;
  line-height: 1.75;
  font-size: 1rem;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  font-family: Georgia, serif;
  color: #fbbf24;
  margin-top: 1em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.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-top: 0;
  margin-bottom: 1.2em;
  color: #9eb8a4;
}

.prose-casino a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-casino a:hover {
  color: #fbbf24;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
  color: #9eb8a4;
}
.prose-casino ul li { list-style-type: disc; margin-bottom: 0.4em; }
.prose-casino ol li { list-style-type: decimal; margin-bottom: 0.4em; }

.prose-casino strong {
  color: #e8f5eb;
  font-weight: 600;
}

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

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

.prose-casino hr {
  border-color: #1a3a22;
  margin: 2em 0;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}
.prose-casino th {
  background: #0f2318;
  color: #fbbf24;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border: 1px solid #1a3a22;
}
.prose-casino td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #1a3a22;
  color: #9eb8a4;
  vertical-align: top;
}
.prose-casino tr:nth-child(even) td {
  background: #0f2318;
}

.prose-casino code {
  background: #0f2318;
  border: 1px solid #1a3a22;
  color: #34d399;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0f2318;
  border: 1px solid #1a3a22;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.prose-casino pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875em;
}

/* ─── Sticky Header ─────────────────────────────────────────── */
#site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Nav Link Active ────────────────────────────────────────── */
.nav-link.active {
  color: #fbbf24;
  background: #0f2318;
}

/* ─── Responsive Helpers ─────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .game-card  { width: 11rem; }
}

/* ─── FAQ Accordion ─────────────────────────────────────────── */
.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
}

/* ─── Review Blocks ──────────────────────────────────────────── */
.review-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ─── Overflow table fix ─────────────────────────────────────── */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
