/* ============================================================
   YollerCasino – custom.css
   Grand Spin Theme: Platinum × Deep Emerald × Dark Polish
   ============================================================ */

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

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

/* ---- PROSE CASINO ----------------------------------------- */
.prose-casino {
  color: #a8c4af;
  line-height: 1.75;
  max-width: 100%;
}
.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #d4e4d8;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.6em;
}
.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; color: #00c46a; }
.prose-casino h3 { font-size: 1.2rem; }
.prose-casino p  { margin-bottom: 1em; }
.prose-casino a  { color: #00c46a; text-decoration: underline; }
.prose-casino a:hover { color: #c9a84c; }
.prose-casino ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1em; }
.prose-casino ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1em; }
.prose-casino li { margin-bottom: 0.35em; }
.prose-casino strong { color: #d4e4d8; font-weight: 700; }
.prose-casino blockquote {
  border-left: 3px solid #00c46a;
  padding-left: 1rem;
  color: #7a9480;
  font-style: italic;
  margin: 1.5em 0;
}
.prose-casino code {
  background: #162019;
  color: #00c46a;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}
.prose-casino pre {
  background: #111a14;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1em;
}
.prose-casino hr {
  border-color: rgba(0,196,106,0.15);
  margin: 2em 0;
}

/* Prose table scroll wrapper */
.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;
}

/* Tables in prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.prose-casino thead th {
  background: #162019;
  color: #d4e4d8;
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,196,106,0.2);
}
.prose-casino tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(0,196,106,0.08);
  color: #a8c4af;
}
.prose-casino tbody tr:hover {
  background: rgba(0,196,106,0.04);
}

/* ---- ANIMATIONS ------------------------------------------- */

/* Pulse slow */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.05); }
}
.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

/* Marquee */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrapper { overflow: hidden; }
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  min-width: 200%;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Parallax hero */
.hero-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Shimmer on bonus badge */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.bonus-badge {
  position: relative;
  overflow: hidden;
}
.bonus-badge::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.07) 50%, transparent 100%);
  background-size: 400px 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

/* CTA pulse */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,196,106,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(0,196,106,0); }
}
.cta-primary {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.cta-primary:hover {
  animation: none;
}

/* Step cards connector line (desktop) */
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4.5rem;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #00c46a, #c9a84c);
  }
}

/* Provider tag hover */
.provider-tag {
  transition: all 0.2s ease;
}
.provider-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,196,106,0.15);
}

/* Game card hover shadow */
.game-card:hover {
  box-shadow: 0 8px 24px rgba(0,196,106,0.15);
}

/* Promo card hover shadow */
.promo-card:hover {
  box-shadow: 0 8px 24px rgba(0,196,106,0.1);
}

/* FAQ item */
.faq-item {
  transition: border-color 0.2s;
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: rgba(0,196,106,0.4);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0f0d; }
::-webkit-scrollbar-thumb { background: rgba(0,196,106,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,196,106,0.5); }

/* Focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #00c46a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Overflow-x for tables */
div.overflow-x-auto,
.payments-table-scroll,
.bonus-table-scroll {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Homepage payments table — horizontal scroll on narrow screens */
.payments-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  table-layout: auto;
}

.payments-table th,
.payments-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: middle;
  word-break: normal;
  white-space: nowrap;
}

.payments-table th:first-child,
.payments-table td:first-child {
  white-space: normal;
  min-width: 10rem;
}

/* Bonus terms table in review block */
.bonus-table {
  width: 100%;
  min-width: 16rem;
  border-collapse: collapse;
}

.bonus-table th,
.bonus-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  word-break: normal;
}

.bonus-table td:first-child {
  min-width: 8rem;
  padding-right: 1rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero-section h1 { font-size: 2rem; }
  .bonus-badge { padding: 1.25rem 1.5rem; }

  .payments-table {
    min-width: 32rem;
    font-size: 0.8125rem;
  }

  .payments-table th,
  .payments-table td {
    padding: 0.75rem 1rem;
  }

  .bonus-table {
    font-size: 0.875rem;
  }
}
