/* ============================================================
   BetStruck Casino — Custom CSS
   Deep Emerald + Gold on Dark Polished Backdrop
   ============================================================ */

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- CTA Buttons ---- */
.cta-btn-primary {
  background: linear-gradient(135deg, #d4a017 0%, #f59e0b 50%, #d4a017 100%);
  color: #060f0a;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.cta-btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  box-shadow: 0 6px 30px rgba(212, 160, 23, 0.7);
  transform: translateY(-2px) scale(1.02);
  color: #030807;
}

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

.cta-btn-secondary {
  background: transparent;
  color: #d4a017;
  font-weight: 700;
  border: 2px solid #d4a017;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.cta-btn-secondary:hover {
  background: rgba(212, 160, 23, 0.12);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
  color: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-2px);
}

.cta-btn-secondary:active {
  transform: translateY(0);
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  will-change: transform;
}

/* Parallax effect for hero background */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    transition: transform 0.1s linear;
  }
}

/* ---- Bonus Badge ---- */
.bonus-badge {
  position: relative;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #d4a017, #047a4a, #d4a017);
  background-size: 200% 200%;
  animation: borderGlow 3s linear infinite;
  z-index: -1;
  opacity: 0.7;
}

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

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

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

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

@keyframes marquee {
  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(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.2);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(4, 122, 74, 0.25);
}

/* ---- Step Cards ---- */
.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.2);
}

.step-badge {
  animation: float 4s ease-in-out infinite;
}

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

/* ---- Review Blocks ---- */
.review-block {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-block:hover {
  border-color: #d4a017;
  box-shadow: 0 8px 32px rgba(212, 160, 23, 0.15);
}

/* ---- Provider Word Cloud ---- */
.provider-cloud {
  line-height: 2.2;
}

.provider-tag {
  display: inline-block;
  cursor: default;
  transition: color 0.2s ease, transform 0.2s ease;
}

.provider-tag:hover {
  color: #d4a017 !important;
  transform: scale(1.08);
}

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

.faq-item:hover {
  border-color: rgba(212, 160, 23, 0.5);
}

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

.faq-question:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Table Styles ---- */
table {
  border-collapse: collapse;
  width: 100%;
}

thead th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

tbody tr {
  transition: background-color 0.2s ease;
}

/* ---- Prose Article Styles ---- */
.prose-article {
  color: #e8f5ee;
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4,
.prose-content h5,
.prose-content h6 {
  color: #d4a017;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  word-break: break-word;
}

.prose-content h1 { font-size: 2rem; }
.prose-content h2 { font-size: 1.6rem; }
.prose-content h3 { font-size: 1.3rem; }
.prose-content h4 { font-size: 1.1rem; }

.prose-content p {
  color: #9bbfab;
  line-height: 1.8;
  margin-bottom: 1em;
  font-size: 0.975rem;
  word-break: break-word;
}

.prose-content a {
  color: #d4a017;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose-content a:hover {
  color: #fbbf24;
}

.prose-content ul {
  list-style: disc;
  margin-left: 1.5em;
  margin-bottom: 1em;
  color: #9bbfab;
}

.prose-content ol {
  list-style: decimal;
  margin-left: 1.5em;
  margin-bottom: 1em;
  color: #9bbfab;
}

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

.prose-content blockquote {
  border-left: 4px solid #d4a017;
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: #6b9e7c;
  font-style: italic;
}

.prose-content strong {
  color: #e8f5ee;
  font-weight: 700;
}

.prose-content em {
  color: #d4a017;
}

.prose-content code {
  background: #0b1f12;
  border: 1px solid #1a3d25;
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.875em;
  color: #10b981;
}

.prose-content pre {
  background: #0b1f12;
  border: 1px solid #1a3d25;
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-bottom: 1.25em;
}

.prose-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

.prose-content hr {
  border: none;
  border-top: 1px solid #1a3d25;
  margin: 2em 0;
}

/* Tables inside prose --*/
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}

.prose-content thead th {
  background: rgba(4, 122, 74, 0.3);
  color: #d4a017;
  font-weight: 700;
  padding: 0.75em 1em;
  border: 1px solid #1a3d25;
  text-align: left;
}

.prose-content tbody td {
  padding: 0.65em 1em;
  border: 1px solid #1a3d25;
  color: #9bbfab;
}

.prose-content tbody tr:nth-child(even) {
  background: rgba(11, 31, 18, 0.5);
}

/* Wrap all prose tables for horizontal scrolling */
.prose-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1a3d25;
  border-radius: 4px;
}

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

/* ---- SVG Pattern Background Accent ---- */
.pattern-bg {
  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='%23047a4a' 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");
}

/* ---- Animations: Glow ---- */
@keyframes glow {
  0%, 100% { text-shadow: 0 0 8px rgba(212, 160, 23, 0.5); }
  50% { text-shadow: 0 0 24px rgba(212, 160, 23, 1), 0 0 40px rgba(212, 160, 23, 0.5); }
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* ---- Animations: Pulse Gold ---- */
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(212,160,23,0.4); }
  50% { box-shadow: 0 0 28px 10px rgba(212,160,23,0.75); }
}

.animate-pulse-gold {
  animation: pulseGold 2s ease-in-out infinite;
}

/* ---- Parallax script hook ---- */
.parallax-hero {
  will-change: background-position;
}

/* ---- Responsive utilities ---- */
@media (max-width: 640px) {
  .hero-section {
    min-height: 90vh;
  }

  .games-strip {
    padding-bottom: 1rem;
  }

  .step-badge {
    animation: none;
  }
}

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

/* ---- Parallax JS Enhancement ---- */

/* Subtle parallax on hero bg via JS scroll handler */

/* ---- Sticky header shadow on scroll ---- */
#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
