/* =============================================================
   SpinstagCasino – Custom CSS
   Target: Hugo v0.128+
============================================================= */

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

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

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

/* =============================================================
   PROSE / CONTENT STYLES
============================================================= */
.prose-casino {
  color: #CBD5E1;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 1em;
  margin-bottom: 0.75em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; color: #F59E0B; }
.prose-casino h3 { font-size: 1.25rem; color: #F59E0B; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1.25em;
  color: #94A3B8;
}

.prose-casino a {
  color: #F59E0B;
  text-decoration: underline;
  transition: color 0.2s;
}

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

.prose-casino strong {
  color: #F1F5F9;
  font-weight: 700;
}

.prose-casino em {
  color: #CBD5E1;
  font-style: italic;
}

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0 1.25em 1.5em;
  color: #94A3B8;
}

.prose-casino ul {
  list-style-type: disc;
}

.prose-casino ol {
  list-style-type: decimal;
}

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

.prose-casino blockquote {
  border-left: 4px solid #F59E0B;
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: #94A3B8;
  font-style: italic;
  background: rgba(30, 58, 138, 0.15);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1em 1.25em;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(30, 58, 138, 0.5);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(30, 58, 138, 0.3);
  color: #F59E0B;
  padding: 0.15em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

.prose-casino pre {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(30, 58, 138, 0.5);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  color: #CBD5E1;
}

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

/* ---- Prose Tables ---- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #94A3B8;
  min-width: 400px;
}

.prose-casino table thead tr {
  background-color: #1E3A8A;
}

.prose-casino table thead th {
  color: #F59E0B;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(30, 58, 138, 0.6);
}

.prose-casino table tbody tr {
  border-bottom: 1px solid rgba(30, 58, 138, 0.3);
  transition: background-color 0.15s;
}

.prose-casino table tbody tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.2);
}

.prose-casino table tbody tr:hover {
  background-color: rgba(26, 39, 68, 0.5);
}

.prose-casino table tbody td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(30, 58, 138, 0.2);
  vertical-align: top;
}

/* =============================================================
   ANIMATIONS
============================================================= */

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

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
  will-change: transform;
}

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

/* ---- Parallax decorative blobs ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}

.parallax-layer {
  animation: float 8s ease-in-out infinite;
}

.parallax-layer:nth-child(2) {
  animation-delay: 3s;
  animation-duration: 11s;
}

/* ---- CTA pulse ---- */
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  50%       { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.cta-primary {
  animation: pulse-amber 2.5s ease-in-out infinite;
}

/* ---- Bonus badge shimmer ---- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.bonus-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(245,158,11,0.08) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 400px 100%;
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

/* ---- Card hover glow ---- */
.game-card:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), 0 4px 24px rgba(0,0,0,0.4);
}

.promo-card:hover {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.18), 0 2px 16px rgba(0,0,0,0.3);
}

/* ---- Step badges ---- */
.step-badge {
  position: relative;
}

.step-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#F59E0B 0deg, transparent 360deg);
  animation: spin-badge 4s linear infinite;
  z-index: -1;
}

@keyframes spin-badge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Provider word cloud ---- */
.provider-cloud {
  align-items: center;
}

.provider-tag {
  color: #F59E0B;
  font-weight: 700;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  transition: color 0.2s, background 0.2s;
  cursor: default;
  line-height: 1.4;
}

.provider-tag:hover {
  color: #FFFFFF;
  background: rgba(245, 158, 11, 0.15);
}

/* ---- FAQ accordion transition ---- */
.faq-answer {
  transition: all 0.25s ease;
}

/* ---- Sticky header shadow on scroll ---- */
#site-header {
  transition: box-shadow 0.3s ease;
}

/* ---- Hero gradient text (for desktop) ---- */
@media (min-width: 1024px) {
  .hero-gradient-text {
    background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* ---- Responsive table override ---- */
@media (max-width: 768px) {
  table {
    font-size: 0.8rem;
  }

  .prose-casino table {
    font-size: 0.8rem;
  }
}

/* ---- Focus styles ---- */
:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1E3A8A;
  border-radius: 3px;
}

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

/* ---- Selection ---- */
::selection {
  background: rgba(245, 158, 11, 0.35);
  color: #FFFFFF;
}

/* ---- Overflow-x safe wrappers ---- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
