/* ============================================================
   ElvisLuck Casino — Custom CSS
   ============================================================ */

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

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

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

/* ── Color palette helpers ──────────────────────────────────── */
:root {
  --color-gold:        #c9a84c;
  --color-gold-light:  #e0c060;
  --color-gold-dark:   #9e7c30;
  --color-stage-dark:  #07100b;
  --color-stage:       #0b1a12;
  --color-stage-light: #122a1c;
  --color-emerald:     #00a65a;
  --color-primary:     #1a6b3c;
}

/* ── Spotlight effects ──────────────────────────────────────── */
.spotlight {
  position: absolute;
  top: 0;
  width: 350px;
  height: 600px;
  border-radius: 0 0 50% 50%;
  opacity: 0.07;
  pointer-events: none;
  animation: spotlight-pulse 4s ease-in-out infinite alternate;
}
.spotlight-left {
  left: 5%;
  background: conic-gradient(from 180deg at 50% 0%, #ffe066 0deg, transparent 60deg);
  transform-origin: top center;
  animation-delay: 0s;
}
.spotlight-right {
  right: 5%;
  background: conic-gradient(from 180deg at 50% 0%, #c9a84c 0deg, transparent 60deg);
  transform-origin: top center;
  animation-delay: 2s;
}
@keyframes spotlight-pulse {
  from { opacity: 0.05; transform: scaleX(1);   }
  to   { opacity: 0.14; transform: scaleX(1.15); }
}

/* ── Hero parallax base ─────────────────────────────────────── */
.hero-section {
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* ── Bonus badge ────────────────────────────────────────────── */
.bonus-badge {
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(0,166,90,0.1) 100%);
  border: 2px solid rgba(201,168,76,0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(201,168,76,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── CTA buttons ────────────────────────────────────────────── */
.cta-primary {
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.cta-secondary {
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.cta-secondary:hover {
  transform: translateY(-2px);
}

/* ── Review cards ───────────────────────────────────────────── */
.review-card {
  background: linear-gradient(145deg, rgba(11,26,18,0.9) 0%, rgba(18,42,28,0.7) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.review-card:hover {
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 8px 40px rgba(201,168,76,0.1);
}

/* ── Provider word cloud ────────────────────────────────────── */
.provider-cloud {
  line-height: 1.8;
}
.provider-tag {
  color: var(--color-gold);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  transition: background 0.2s, color 0.2s;
  cursor: default;
  word-break: break-word;
}
.provider-tag:hover {
  background: rgba(201,168,76,0.2);
  color: #fff;
}

/* ── Marquee animation ──────────────────────────────────────── */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--color-stage), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--color-stage), transparent);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 9999px;
  color: #e0c060;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Game cards ─────────────────────────────────────────────── */
.game-card {
  background: var(--color-stage);
  border: 1px solid rgba(201,168,76,0.15);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.15);
}

/* ── Promo cards ────────────────────────────────────────────── */
.promo-card {
  background: linear-gradient(145deg, rgba(11,26,18,0.95) 0%, rgba(18,42,28,0.8) 100%);
  border: 1px solid rgba(201,168,76,0.15);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.promo-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}

/* ── Step cards ─────────────────────────────────────────────── */
.step-card {
  background: linear-gradient(145deg, rgba(11,26,18,0.9) 0%, rgba(18,42,28,0.7) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 6px 28px rgba(201,168,76,0.12);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: rgba(201,168,76,0.35);
}
.faq-question {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Prose styling ──────────────────────────────────────────── */
.prose {
  color: #d1d5db;
  line-height: 1.8;
  word-break: break-word;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #e0c060;
  font-family: Georgia, serif;
  margin-top: 1em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.prose h1 { font-size: 2rem;   }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p   { margin-bottom: 1em; }
.prose ul  { list-style: disc; padding-left: 1.5rem; margin-bottom: 1em; }
.prose ol  { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1em; }
.prose li  { margin-bottom: 0.4em; }
.prose strong { color: #e0c060; }
.prose a {
  color: var(--color-gold);
  text-decoration: underline;
  transition: color 0.2s;
}
.prose a:hover { color: #fff; }
.prose blockquote {
  border-left: 4px solid var(--color-gold);
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5em 0;
}
.prose code {
  background: rgba(201,168,76,0.1);
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #e0c060;
}
.prose pre {
  background: rgba(7,16,11,0.8);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1em;
}
.prose hr {
  border-color: rgba(201,168,76,0.2);
  margin: 2em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: 0.9em;
}
.prose table th {
  background: rgba(201,168,76,0.15);
  color: #e0c060;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border: 1px solid rgba(201,168,76,0.25);
}
.prose table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(201,168,76,0.15);
  color: #d1d5db;
}
.prose table tr:nth-child(even) {
  background: rgba(11,26,18,0.5);
}

/* ── Mandatory prose-casino table scroll 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;
}

/* ── General table overflow protection ──────────────────────── */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  min-width: 480px;
}
@media (max-width: 639px) {
  table {
    font-size: 0.78rem;
  }
}

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

/* ── Scroll bounce prevention ───────────────────────────────── */
* {
  box-sizing: border-box;
}

/* ── SVG background pattern for sections ───────────────────── */
.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Mobile menu transitions ────────────────────────────────── */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ── Footer link hover ──────────────────────────────────────── */
footer a {
  transition: color 0.2s;
}

/* ── Responsive image handling ──────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Section divider shimmer ────────────────────────────────── */
.shimmer-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
