/* =============================================================
   NanaCasino – Custom CSS
   Stahl Fortune Color Scheme: Graphite, Platinum, Gold
============================================================= */

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

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

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

/* =============================================================
   CSS Variables
============================================================= */
:root {
  --color-graphite: #2a2a2e;
  --color-graphite-dark: #1a1a1e;
  --color-graphite-light: #3a3a3f;
  --color-platinum: #d4d4d8;
  --color-platinum-light: #e8e8ec;
  --color-gold: #c9a84c;
  --color-gold-light: #e6c97a;
  --color-gold-dark: #a07830;
  --color-steel-blue: #4a5568;
  --color-steel-light: #718096;
  --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.3);
  --shadow-gold-strong: 0 0 40px rgba(201, 168, 76, 0.5);
}

/* =============================================================
   Container
============================================================= */
.max-w-container {
  max-width: 1440px;
}

/* =============================================================
   Header / Navigation
============================================================= */
.site-header {
  background-color: rgba(26, 26, 30, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: #d4d4d8;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--color-gold-light);
}

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

.mobile-menu {
  background-color: rgba(26, 26, 30, 0.99);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  color: #d4d4d8;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  background-color: rgba(201, 168, 76, 0.1);
  color: var(--color-gold-light);
  border-color: rgba(201, 168, 76, 0.2);
}

.burger-btn {
  background-color: rgba(58, 58, 63, 0.9);
  border: 1px solid rgba(201, 168, 76, 0.3);
  cursor: pointer;
  z-index: 60;
  flex-shrink: 0;
}

.burger-btn:hover {
  background-color: rgba(201, 168, 76, 0.15);
  border-color: var(--color-gold);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #e8e8ec;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* =============================================================
   CTA Buttons
============================================================= */
.cta-primary-btn {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  color: #1a1a1e;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5);
  filter: brightness(1.1);
}

.cta-primary-btn:active {
  transform: translateY(0) scale(0.99);
}

.cta-secondary-btn {
  background: transparent;
  color: var(--color-gold-light);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-secondary-btn:hover {
  background-color: rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

/* =============================================================
   Section Labels
============================================================= */
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #1a1a1e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
}

/* =============================================================
   Hero Section
============================================================= */
.hero-section {
  position: relative;
  background-attachment: fixed;
}

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

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 30, 0.75) 0%,
    rgba(26, 26, 30, 0.55) 40%,
    rgba(26, 26, 30, 0.8) 100%
  );
}

.hero-title {
  background: linear-gradient(135deg, #e8e8ec 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.15;
}

.bonus-badge-box {
  background: linear-gradient(
    135deg,
    rgba(42, 42, 46, 0.95) 0%,
    rgba(58, 58, 63, 0.92) 100%
  );
  border: 1px solid rgba(201, 168, 76, 0.4);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.scroll-bounce {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================================
   Icon Badges
============================================================= */
.icon-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1e;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

/* =============================================================
   Review Cards
============================================================= */
.review-card {
  background: linear-gradient(145deg, var(--color-graphite), rgba(58, 58, 63, 0.6));
  border: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.2);
}

/* =============================================================
   Provider Word Cloud
============================================================= */
.provider-tag {
  color: var(--color-platinum);
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
  line-height: 1.4;
}

.provider-tag:hover {
  color: var(--color-gold-light);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
}

/* =============================================================
   Game Cards
============================================================= */
.game-card {
  background: var(--color-graphite);
  border: 1px solid rgba(201, 168, 76, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.25);
  border-color: rgba(201, 168, 76, 0.3);
}

.game-card-overlay {
  background: rgba(26, 26, 30, 0.7);
  backdrop-filter: blur(2px);
}

/* =============================================================
   Payment Table
============================================================= */
.payment-table {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--color-graphite-light);
}

.payment-table th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-table td,
.payment-table th {
  border-color: var(--color-graphite-light) !important;
}

/* =============================================================
   Promo Cards
============================================================= */
.promo-card {
  background: linear-gradient(145deg, var(--color-graphite), rgba(42, 42, 46, 0.8));
  border: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
  border-color: rgba(201, 168, 76, 0.35);
}

.promo-icon-badge {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.25));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* =============================================================
   Step Cards
============================================================= */
.step-card {
  background: linear-gradient(145deg, var(--color-graphite), rgba(42, 42, 46, 0.7));
  border: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.2);
}

.step-badge {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light));
  color: #1a1a1e;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.step-icon {
  font-size: 2rem;
  color: var(--color-gold);
  text-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

/* =============================================================
   FAQ
============================================================= */
.faq-item {
  background: var(--color-graphite);
  border: 1px solid rgba(201, 168, 76, 0.12);
  transition: border-color 0.2s ease;
}

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

.faq-question {
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-question:hover {
  color: var(--color-gold-light);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 0.5rem;
}

.faq-answer {
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  line-height: 1.7;
}

/* =============================================================
   Footer
============================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--color-graphite-dark) 0%, rgba(15, 15, 18, 1) 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-link {
  color: var(--color-steel-light);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-gold-light);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.responsible-block {
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.age-restriction-block {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
  border: 2px solid rgba(201, 168, 76, 0.3);
}

/* =============================================================
   Prose Casino (Single Pages)
============================================================= */
.prose-casino {
  color: var(--color-platinum);
  max-width: none;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: var(--color-gold-light);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.75em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; border-bottom: 1px solid rgba(201, 168, 76, 0.2); padding-bottom: 0.4em; }
.prose-casino h3 { font-size: 1.2rem; }

.prose-casino p {
  color: var(--color-platinum);
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.prose-casino a {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(230, 201, 122, 0.4);
  transition: color 0.2s ease;
}

.prose-casino a:hover {
  color: var(--color-gold);
}

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0 1.2em 1.5em;
  color: var(--color-platinum);
}

.prose-casino li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.prose-casino strong {
  color: var(--color-gold-light);
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
  margin: 1.5em 0;
  color: var(--color-platinum-light);
  font-style: italic;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
}

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

.prose-casino th {
  background-color: var(--color-graphite);
  color: var(--color-gold-light);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--color-graphite-light);
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-graphite-light);
  color: var(--color-platinum);
}

.prose-casino tr:nth-child(even) td {
  background-color: rgba(42, 42, 46, 0.5);
}

.prose-casino tr:hover td {
  background-color: rgba(201, 168, 76, 0.05);
}

.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-casino hr {
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(42, 42, 46, 0.8);
  color: var(--color-gold-light);
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  font-size: 0.85em;
}

.prose-casino pre {
  background: var(--color-graphite);
  border: 1px solid var(--color-graphite-light);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

/* =============================================================
   Marquee Animation
============================================================= */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

/* =============================================================
   Parallax
============================================================= */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* =============================================================
   Shimmer / Gold Glow Animation
============================================================= */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-gold-dark) 25%,
    var(--color-gold-light) 50%,
    var(--color-gold-dark) 75%
  );
  background-size: 200% auto;
  animation: goldShimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================
   Pulse Animation for CTA
============================================================= */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35); }
  50% { box-shadow: 0 4px 30px rgba(201, 168, 76, 0.6); }
}

.cta-primary-btn {
  animation: ctaPulse 3s ease-in-out infinite;
}

.cta-primary-btn:hover {
  animation: none;
}

/* =============================================================
   SVG Pattern Background for sections
============================================================= */
.pattern-bg {
  background-color: var(--color-graphite);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =============================================================
   Scrollbar Styling
============================================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-graphite-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* =============================================================
   Utility
============================================================= */
.text-gold { color: var(--color-gold); }
.text-goldLight { color: var(--color-gold-light); }
.text-platinum { color: var(--color-platinum); }
.text-steelLight { color: var(--color-steel-light); }
.bg-graphite { background-color: var(--color-graphite); }
.bg-graphiteDark { background-color: var(--color-graphite-dark); }

/* =============================================================
   Responsive Adjustments
============================================================= */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .bonus-badge-box {
    padding: 1.25rem;
  }

  .step-badge {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (max-width: 1024px) {
  .nav-link {
    display: none;
  }
}

/* Ensure tables wrap properly on mobile */
table {
  min-width: 100%;
}

div.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}