/* =============================================
   NanaCasino – Custom CSS
   Imperial Fortune Theme
   ============================================= */

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

body {
  word-break: break-word;
  overflow-x: hidden;
  background-color: #0d0a1a;
  color: #e5e4e2;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

/* =============================================
   SCROLLABLE PROSE TABLE
   ============================================= */
.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 STYLING (single pages)
   ============================================= */
.prose-casino {
  color: #c0c0c0;
  line-height: 1.8;
  font-size: 1rem;
}

.prose-casino h1 {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  line-height: 1.25;
}

.prose-casino h2 {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f5c518;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #3a2d6e;
  padding-bottom: 0.5rem;
}

.prose-casino h3 {
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #d4af37;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.prose-casino p {
  margin-bottom: 1rem;
  color: #b8bfc9;
}

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

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

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

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

.prose-casino li {
  margin-bottom: 0.35rem;
}

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

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

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

.prose-casino hr {
  border-color: #3a2d6e;
  margin: 2rem 0;
}

.prose-casino code {
  background: #16112e;
  color: #f5c518;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

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

.prose-casino pre code {
  background: transparent;
  padding: 0;
  color: #e5e4e2;
}

/* Tables in prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.prose-casino thead tr {
  background: #16112e;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #d4af37;
  font-weight: 700;
  border: 1px solid #3a2d6e;
}

.prose-casino td {
  padding: 0.6rem 1rem;
  border: 1px solid #3a2d6e;
  color: #b8bfc9;
}

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

.prose-casino tbody tr:hover {
  background: #1a1535;
}

/* Wrap all tables in prose */
.prose-casino div.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

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

.hero-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  transition: transform 0.1s ease-out;
}

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

/* =============================================
   BONUS BADGE
   ============================================= */
.bonus-badge {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), 0 0 50px rgba(212, 175, 55, 0.3);
  }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-cta-hero,
.btn-cta-primary,
.btn-cta-promo {
  background: linear-gradient(135deg, #d4af37 0%, #f5c518 40%, #d4af37 70%, #b8960c 100%);
  color: #0d0a1a;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-cta-hero:hover,
.btn-cta-primary:hover,
.btn-cta-promo:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.shadow-gold {
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f5c518);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* =============================================
   MARQUEE ANIMATION
   ============================================= */
.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 {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

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

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

/* =============================================
   GAME CARDS
   ============================================= */
.game-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

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

.promo-card:hover {
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

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

.step-badge {
  background: linear-gradient(135deg, #d4af37 0%, #f5c518 50%, #b8960c 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* =============================================
   REVIEW BLOCKS
   ============================================= */
.review-block {
  transition: border-color 0.3s ease;
}

.review-block:hover {
  border-color: #d4af37;
}

/* =============================================
   WORD CLOUD
   ============================================= */
.wc-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: default;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
}

.wc-tag:hover {
  transform: scale(1.1);
  color: #f5c518 !important;
}

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

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

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

.faq-answer {
  animation: faq-open 0.25s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   AGE BADGE
   ============================================= */
.age-badge {
  font-family: Georgia, serif;
  border: 2px solid #fff;
  flex-shrink: 0;
}

/* =============================================
   SVG DECORATIVE ELEMENTS
   ============================================= */
.ornate-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #f5c518, #d4af37, transparent);
  margin: 2rem 0;
}

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

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

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

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

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

/* =============================================
   UTILITIES
   ============================================= */
.text-shadow-gold {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f5c518 40%, #d4af37 70%, #b8960c 100%);
}

/* =============================================
   RESPONSIVE HELPERS
   ============================================= */
@media (max-width: 640px) {
  .hero-section {
    min-height: 100svh;
  }

  .bonus-badge {
    padding: 1.25rem;
  }

  .step-badge {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* =============================================
   FOOTER
   ============================================= */
footer a {
  transition: color 0.2s ease;
}

/* =============================================
   OVERFLOW TABLES
   ============================================= */
.overflow-x-auto table {
  min-width: 500px;
}

/* Ensure tables don't break layout */
table {
  word-break: normal;
}

td, th {
  word-break: break-word;
}
