/* ============================================
   Spintexas Casino - Custom CSS
   Animations: Marquee + Parallax
   ============================================ */

/* --- Root Variables --- */
:root {
  --clr-bg-deep: #060b1f;
  --clr-bg: #0a0e27;
  --clr-bg-card: #111638;
  --clr-bg-card-hover: #1a2048;
  --clr-accent: #f4a623;
  --clr-accent-hover: #ffbe45;
  --clr-gold: #d4a03c;
  --clr-text: #e8ecf4;
  --clr-text-muted: #8b92b0;
  --clr-success: #22c55e;
  --clr-error: #ef4444;
  --clr-border: rgba(244, 166, 35, 0.15);
  --clr-glow: rgba(244, 166, 35, 0.35);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--clr-bg-deep);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Prose Styling for Review Content --- */
.prose {
  max-width: 72ch;
  color: var(--clr-text);
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--clr-accent);
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--clr-text-muted);
  font-size: 1rem;
}

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

.prose li {
  margin-bottom: 0.4rem;
  color: var(--clr-text-muted);
}

.prose li::marker {
  color: var(--clr-accent);
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--clr-accent-hover);
}

/* --- Keyframe Animations --- */

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

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

/* Parallax float for hero */
@keyframes parallax-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(0.5deg); }
  50% { transform: translateY(-6px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-0.5deg); }
}

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

/* Pulsating glow on CTA */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px var(--clr-glow), 0 0 20px rgba(244, 166, 35, 0.15);
  }
  50% {
    box-shadow: 0 0 18px var(--clr-glow), 0 0 40px rgba(244, 166, 35, 0.25);
  }
}

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

/* Shimmer for badges */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.badge-shimmer {
  background: linear-gradient(90deg, var(--clr-accent) 0%, #ffe08a 50%, var(--clr-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Fade in up on scroll */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.7s ease-out forwards;
}

/* Stagger children */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* Spin slow (for decorative elements) */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Border glow */
@keyframes border-glow {
  0%, 100% { border-color: rgba(244, 166, 35, 0.15); }
  50% { border-color: rgba(244, 166, 35, 0.4); }
}

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

/* --- Card Styles --- */
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(244, 166, 35, 0.12);
  border-color: rgba(244, 166, 35, 0.35);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.game-card .card-body {
  padding: 0.75rem 1rem;
}

.game-card .card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card .card-provider {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
}

/* Badge */
.game-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.badge-rtp { background: #16a34a; color: #fff; }
.badge-jackpot { background: #dc2626; color: #fff; }
.badge-bonus { background: #7c3aed; color: #fff; }
.badge-popular { background: var(--clr-accent); color: #0a0e27; }

/* Play overlay on hover */
.game-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

/* --- Sticky Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 11, 31, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 166, 35, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 11, 31, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  margin: 5.5rem 1rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(244, 166, 35, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(100, 120, 255, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #0d1233 0%, #0a0e27 40%, #111638 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(244, 166, 35, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(244, 166, 35, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* --- CTA Button --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, var(--clr-accent) 0%, #e8920f 100%);
  color: #0a0e27;
  letter-spacing: 0.01em;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(244, 166, 35, 0.35);
}

.btn-cta-outline {
  background: transparent;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
}

.btn-cta-outline:hover {
  background: rgba(244, 166, 35, 0.1);
  color: var(--clr-accent-hover);
}

/* --- Section Headings --- */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title span {
  color: var(--clr-accent);
}

/* --- Bets Table --- */
.bets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.bets-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  border-bottom: 1px solid var(--clr-border);
}

.bets-table td {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(244, 166, 35, 0.05);
  transition: background 0.2s ease;
}

.bets-table tr:hover td {
  background: rgba(244, 166, 35, 0.04);
}

/* --- Tabs --- */
.tab-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  transition: all 0.25s ease;
}

.tab-btn.active {
  background: var(--clr-accent);
  color: #0a0e27;
  border-color: var(--clr-accent);
}

.tab-btn:hover:not(.active) {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* --- Review Card --- */
.review-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.review-card:hover {
  border-color: rgba(244, 166, 35, 0.3);
}

/* --- Star Rating --- */
.star { color: var(--clr-accent); }
.star-empty { color: #2a3060; }

/* --- Provider Cloud --- */
.provider-btn {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--clr-bg-card);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.provider-btn:hover {
  background: var(--clr-bg-card-hover);
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 166, 35, 0.1);
}

/* --- Feature of the Week --- */
.feature-week {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-bg-card) 0%, #161d45 100%);
  border: 1px solid var(--clr-border);
}

/* --- Promotions Card --- */
.promo-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(244, 166, 35, 0.1);
}

/* --- Payment Method Table --- */
.payment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.payment-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-accent);
  background: rgba(244, 166, 35, 0.06);
}

.payment-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--clr-text);
  border-bottom: 1px solid rgba(244, 166, 35, 0.06);
}

.payment-table tr:last-child td {
  border-bottom: none;
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(244, 166, 35, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #111638 0%, #0d1233 50%, #0a0e27 100%);
  border: 1px solid var(--clr-border);
}

/* --- Responsive Utilities --- */
@media (min-width: 640px) {
  .hero-section {
    margin: 6rem 1.5rem 0;
  }
}

@media (min-width: 768px) {
  .hero-section {
    margin: 6rem 2rem 0;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    margin: 6.5rem 2.5rem 0;
  }
}

@media (min-width: 1280px) {
  .hero-section {
    margin: 6.5rem auto 0;
    max-width: 1320px;
  }
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 11, 31, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--clr-accent);
}

/* --- Author Card --- */
.author-card {
  background: linear-gradient(135deg, var(--clr-bg-card) 0%, #151b42 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

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

::-webkit-scrollbar-track {
  background: var(--clr-bg-deep);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent);
}

/* --- Selection --- */
::selection {
  background: rgba(244, 166, 35, 0.25);
  color: #fff;
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Utility: gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #ffe08a 50%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Win/Lose row colors --- */
.bet-win td { color: var(--clr-success); }
.bet-lose td { color: var(--clr-error); }

/* --- Footer --- */
/* --- Inner Page Styles --- */
.no-underline { text-decoration: none; }

/* Expandable FAQ / support toggles */
.faq-toggle,
.support-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

.faq-toggle:hover,
.support-toggle:hover {
  background: rgba(244, 166, 35, 0.03);
}

/* Inner page hero reuses .hero-section from homepage */

/* Lobby filter: no-results message */
.lobby-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--clr-text-muted);
}

/* Step number circles (mobile app install) */
.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--clr-accent);
  color: var(--clr-bg-deep);
  font-weight: 900;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ordered list within support/inner pages */
.prose ol {
  list-style: decimal;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose ol li {
  margin-bottom: 0.4rem;
  color: var(--clr-text-muted);
}

.prose ol li::marker {
  color: var(--clr-accent);
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--clr-bg-deep) 0%, #050818 100%);
  border-top: 1px solid var(--clr-border);
}
