/* ================================================================
   SpinstagCasino – custom.css
   Master stylesheet: layout, animations, components, prose
================================================================ */

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

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

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

/* ---------- Typography / Prose -------------------------------- */
.prose-casino {
  color: rgba(245, 234, 208, 0.85);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 72ch;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #c9a84c;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

.prose-casino h1 { font-size: 2rem; margin-top: 0; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1.25em;
}

.prose-casino a {
  color: #c9a84c;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

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

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

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

.prose-casino blockquote {
  border-left: 3px solid #c9a84c;
  padding-left: 1rem;
  color: rgba(245, 234, 208, 0.6);
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino code {
  background: rgba(13, 44, 107, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  color: #e2c97e;
}

.prose-casino pre {
  background: rgba(13, 44, 107, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  margin: 2em 0;
}

/* ---------- 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;
}

/* Table base in prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose-casino thead th {
  background: rgba(13, 44, 107, 0.8);
  color: #c9a84c;
  text-align: left;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.prose-casino tbody td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  color: rgba(245, 234, 208, 0.8);
}

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

/* Ensure all table wrappers scroll on mobile */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ---------- Parallax Hero ------------------------------------- */
.parallax-hero {
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.1s linear;
}

/* ---------- Bonus Badge Glow Pulse ---------------------------- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(201, 168, 76, 0.7), 0 0 60px rgba(201, 168, 76, 0.3); }
}

.bonus-badge {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ---------- CTA Pulse ----------------------------------------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(201, 168, 76, 0.4); }
  50%       { box-shadow: 0 0 30px rgba(201, 168, 76, 0.8); }
}

.pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ---------- Marquee / Game Strip ------------------------------ */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

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

/* ---------- Provider Cloud ------------------------------------ */
.provider-tag {
  transition: all 0.2s ease;
}

.provider-tag:hover {
  transform: scale(1.06);
}

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

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

/* ---------- Step Cards ---------------------------------------- */
.step-card {
  position: relative;
}

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

/* ---------- Nav Active State ---------------------------------- */
.nav-link.active,
.mobile-nav-link.active {
  color: #c9a84c;
  background: rgba(13, 44, 107, 0.4);
}

/* ---------- Game Cards ---------------------------------------- */
.game-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

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

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate-45 {
  transform: rotate(45deg);
}

/* ---------- Velvet Dark utility (Tailwind extend) ------------- */
.bg-velvet-dark {
  background-color: #0d051a;
}

/* ---------- Gold shadow utility ------------------------------ */
.shadow-gold {
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.35);
}

.shadow-sapphire {
  box-shadow: 0 2px 20px rgba(13, 44, 107, 0.5);
}

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

/* ---------- Burger animation ---------------------------------- */
#burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.burger-bar {
  transition: transform 0.25s ease, opacity 0.15s ease;
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: #c9a84c;
}

/* ---------- Scroll-bar styling (WebKit) ----------------------- */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.7);
}

/* ---------- Parallax JS hook ---------------------------------- */
@media (min-width: 1024px) {
  .parallax-hero {
    transform: translateY(0);
  }
}

/* ---------- Focus visible ------------------------------------- */
:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 3px;
}

/* ---------- Selection colour ---------------------------------- */
::selection {
  background: rgba(201, 168, 76, 0.35);
  color: #f5ead0;
}
