/* =============================================================
   Yoller Casino – custom.css
   Theme: Champagne Gold + Deep Navy Élégance
============================================================= */

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

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

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

/* -------------------------------------------------------
   Typography
------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------------
   Prose Styling (single pages)
------------------------------------------------------- */
.prose-casino {
  color: rgba(247, 231, 206, 0.85);
  max-width: 75ch;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #d4a017;
  font-family: Georgia, serif;
  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 p {
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.prose-casino a {
  color: #d4a017;
  text-decoration: underline;
  text-decoration-color: rgba(212, 160, 23, 0.4);
  transition: color 0.2s;
}

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

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

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

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

.prose-casino blockquote {
  border-left: 3px solid #d4a017;
  padding-left: 1rem;
  color: rgba(247, 231, 206, 0.6);
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: rgba(212, 160, 23, 0.2);
  margin: 2em 0;
}

/* -------------------------------------------------------
   Prose Table Scroll (mandatory 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;
}

/* -------------------------------------------------------
   Prose Tables (inline)
------------------------------------------------------- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose-casino thead {
  background: rgba(30, 45, 106, 0.8);
}

.prose-casino th {
  color: #d4a017;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212, 160, 23, 0.2);
  font-weight: 600;
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(212, 160, 23, 0.1);
  color: rgba(247, 231, 206, 0.75);
  vertical-align: top;
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(7, 14, 46, 0.4);
}

.prose-casino tbody tr:hover {
  background: rgba(30, 45, 106, 0.3);
}

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

/* -------------------------------------------------------
   Hero Section
------------------------------------------------------- */
.hero-section {
  background: #030818;
  min-height: 100vh;
}

.hero-parallax {
  will-change: transform;
  transform: translateZ(0);
}

/* -------------------------------------------------------
   Bonus Badge shimmer
------------------------------------------------------- */
.bonus-badge {
  background: linear-gradient(
    135deg,
    rgba(212, 160, 23, 0.5) 0%,
    rgba(212, 160, 23, 0.1) 25%,
    rgba(212, 160, 23, 0.4) 50%,
    rgba(212, 160, 23, 0.1) 75%,
    rgba(212, 160, 23, 0.5) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -------------------------------------------------------
   CTA button glow
------------------------------------------------------- */
.cta-primary {
  box-shadow: 0 0 0 rgba(212, 160, 23, 0);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  box-shadow: 0 4px 30px rgba(212, 160, 23, 0.45);
}

.hover\:shadow-gold:hover {
  box-shadow: 0 4px 30px rgba(212, 160, 23, 0.45);
}

/* -------------------------------------------------------
   Scroll bounce animation
------------------------------------------------------- */
@keyframes bounce-y {
  0%, 100% { transform: translate(-50%, 0); }
  50%       { transform: translate(-50%, 10px); }
}

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

/* -------------------------------------------------------
   Marquee
------------------------------------------------------- */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  padding: 0.5rem 0;
}

.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.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 160, 23, 0.18);
}

/* -------------------------------------------------------
   Step cards
------------------------------------------------------- */
.step-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 160, 23, 0.12);
}

/* -------------------------------------------------------
   Promo cards
------------------------------------------------------- */
.promo-card {
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 160, 23, 0.15);
}

/* -------------------------------------------------------
   Provider word cloud
------------------------------------------------------- */
.provider-tag {
  transition: all 0.2s ease;
  cursor: default;
  line-height: 1.3;
}

.provider-tag:hover {
  background: rgba(30, 45, 106, 0.9);
  border-color: rgba(212, 160, 23, 0.6);
  color: #d4a017;
  transform: scale(1.05);
}

/* -------------------------------------------------------
   Review blocks
------------------------------------------------------- */
.review-block {
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-block:hover {
  box-shadow: 0 4px 24px rgba(212, 160, 23, 0.1);
}

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

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(212, 160, 23, 0.4);
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-question[aria-expanded="true"] {
  color: #d4a017;
}

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

/* -------------------------------------------------------
   SVG Background Patterns
------------------------------------------------------- */
.svg-grid-pattern {
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

.svg-dots-pattern {
  background-image: radial-gradient(circle, rgba(212, 160, 23, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Sparkle overlay using CSS box-shadow trick */
.sparkle-overlay {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(247, 231, 206, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 60% 15%, rgba(212, 160, 23, 0.5) 1.5px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(247, 231, 206, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(212, 160, 23, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 10% 60%, rgba(247, 231, 206, 0.3) 1.5px, transparent 1.5px),
    radial-gradient(circle at 90% 40%, rgba(212, 160, 23, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(247, 231, 206, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 70% 85%, rgba(212, 160, 23, 0.4) 1px, transparent 1px);
  background-size: 300px 300px, 250px 250px, 400px 400px, 200px 200px, 350px 350px, 300px 300px, 500px 500px, 280px 280px;
  animation: sparkle-drift 8s ease-in-out infinite alternate;
}

.sparkle-overlay-2 {
  background-image:
    radial-gradient(circle at 15% 25%, rgba(247, 231, 206, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(212, 160, 23, 0.6) 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 65%, rgba(247, 231, 206, 0.35) 1px, transparent 1px),
    radial-gradient(circle at 35% 85%, rgba(212, 160, 23, 0.45) 1px, transparent 1px),
    radial-gradient(circle at 55% 40%, rgba(247, 231, 206, 0.25) 2px, transparent 2px);
  background-size: 280px 280px, 220px 220px, 380px 380px, 180px 180px, 460px 460px;
  animation: sparkle-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes sparkle-drift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 30px 20px, -20px 30px, 15px -25px, -30px 10px, 20px 30px, -15px -20px, 25px 15px, -10px 25px; }
}

/* -------------------------------------------------------
   Parallax effect (JS-enhanced, CSS fallback)
------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-parallax {
    transform: translateY(0);
    will-change: transform;
  }
}

/* -------------------------------------------------------
   Homepage tables
------------------------------------------------------- */
.home-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.payment-table th,
.payment-table td,
.bonus-table th,
.bonus-table td {
  word-break: normal;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .home-table-scroll .bonus-table {
    min-width: 28rem;
  }

  .payment-table {
    min-width: 100%;
  }
}

@media (max-width: 767px) {
  .stack-table thead {
    display: none;
  }

  .stack-table tbody {
    display: block;
  }

  .stack-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(7, 14, 46, 0.45);
  }

  .stack-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .stack-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(212, 160, 23, 0.12);
    text-align: right;
  }

  .stack-table tbody td:last-child {
    border-bottom: none;
  }

  .stack-table tbody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-weight: 600;
    color: #d4a017;
    font-size: 0.75rem;
    text-align: left;
    max-width: 45%;
  }

  .payment-table tbody td:first-child,
  .bonus-table tbody td:first-child {
    justify-content: flex-start;
    background: rgba(30, 45, 106, 0.55);
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    font-weight: 600;
  }

  .payment-table tbody td:first-child::before,
  .bonus-table tbody td:first-child::before {
    content: none;
  }
}

/* -------------------------------------------------------
   Mobile responsive helpers
------------------------------------------------------- */
@media (max-width: 640px) {
  .bonus-badge {
    width: 100%;
  }

  .marquee-track {
    animation-duration: 20s;
  }
}

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

::-webkit-scrollbar-track {
  background: #030818;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, 0.7);
}

/* -------------------------------------------------------
   Selection colour
------------------------------------------------------- */
::selection {
  background: rgba(212, 160, 23, 0.35);
  color: #f7e7ce;
}

/* -------------------------------------------------------
   Focus ring
------------------------------------------------------- */
:focus-visible {
  outline: 2px solid rgba(212, 160, 23, 0.7);
  outline-offset: 2px;
}

/* -------------------------------------------------------
   Burger animation
------------------------------------------------------- */
#burger-btn .burger-line {
  transform-origin: center;
}

/* -------------------------------------------------------
   Sticky header shadow
------------------------------------------------------- */
header {
  will-change: transform;
}

/* -------------------------------------------------------
   Ensure images don't overflow
------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}

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