/* ============================================================
   Alterspin Casino – Custom Styles
   Animations: Marquee + Particle
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-body: #09090b;
  --bg-card: #141417;
  --bg-card-hover: #1c1c21;
  --border-subtle: rgba(255,255,255,.06);
  --orange: #ff5500;
  --orange-hover: #ff6b20;
  --orange-glow: rgba(255,85,0,.45);
  --gold: #ffd700;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Prose (review readability) ---------- */
.prose { max-width: 72ch; color: var(--text); }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin: 2.5rem 0 1rem; color: #fff; }
.prose h3 { font-size: 1.35rem; font-weight: 600; margin: 2rem 0 .75rem; color: #fff; }
.prose p { margin: 0 0 1.25rem; color: var(--text-muted); line-height: 1.7; }
.prose ul,
.prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; color: var(--text-muted); }
.prose li { margin-bottom: .35rem; line-height: 1.65; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-hover); }
.prose blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: rgba(255,85,0,.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-muted);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th,
.prose td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.prose th { color: #fff; font-weight: 600; background: var(--bg-card); }

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  box-shadow: 0 0 0 1px var(--border-subtle), 0 0 30px rgba(255,85,0,.08);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,85,0,.12);
}

/* ---------- CTA Button ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  text-transform: uppercase;
  letter-spacing: .04em;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.btn-cta:hover {
  background: var(--orange-hover);
  transform: scale(1.04);
}
.btn-cta-sm {
  padding: .6rem 1.35rem;
  font-size: .85rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--orange);
  background: transparent;
  border: 2px solid var(--orange);
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}

/* ---------- Keyframe: Pulse Glow ---------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 18px var(--orange-glow); }
  50%      { box-shadow: 0 0 36px var(--orange-glow), 0 0 60px rgba(255,85,0,.18); }
}

/* ---------- Keyframe: Float ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* ---------- Keyframe: Shimmer ---------- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ============================================================
   ANIMATION 1 – MARQUEE (providers cloud)
   ============================================================ */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

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

/* ============================================================
   ANIMATION 2 – PARTICLES (hero background)
   ============================================================ */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0%   { transform: translateY(0) scale(.4); opacity: 0; }
  15%  { opacity: .6; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}
.particle:nth-child(1) { left: 8%;  width: 4px; height: 4px; animation-duration: 7s;  animation-delay: 0s;  }
.particle:nth-child(2) { left: 22%; width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 1s;  }
.particle:nth-child(3) { left: 38%; width: 5px; height: 5px; animation-duration: 8s;  animation-delay: 2.5s; background: var(--gold); }
.particle:nth-child(4) { left: 55%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: .5s;  }
.particle:nth-child(5) { left: 70%; width: 4px; height: 4px; animation-duration: 7.5s; animation-delay: 3s;  background: var(--gold); }
.particle:nth-child(6) { left: 85%; width: 3px; height: 3px; animation-duration: 9.5s; animation-delay: 1.5s; }
.particle:nth-child(7) { left: 45%; width: 2px; height: 2px; animation-duration: 11s; animation-delay: 4s;  }
.particle:nth-child(8) { left: 92%; width: 4px; height: 4px; animation-duration: 8.5s; animation-delay: 2s;  background: var(--gold); }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 9999px;
  color: #fff;
}
.badge-rtp      { background: #16a34a; }
.badge-jackpot  { background: #a855f7; }
.badge-bonus    { background: var(--orange); }
.badge-popular  { background: #eab308; color: #000; }

/* ---------- Slot card ---------- */
.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.slot-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,85,0,.15);
}
.slot-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.slot-card .slot-info {
  padding: .75rem;
}
.slot-card .slot-title {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-card .slot-provider {
  font-size: .72rem;
  color: var(--text-muted);
  margin: 0;
}
.slot-card .badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
}
.slot-card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .25s;
}
.slot-card:hover .play-overlay { opacity: 1; }
.play-overlay svg {
  width: 48px;
  height: 48px;
  fill: var(--orange);
  filter: drop-shadow(0 0 12px var(--orange-glow));
}

/* ---------- Tabs ---------- */
.tab-btn {
  padding: .65rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border-subtle);
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tab-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ---------- Provider pill ---------- */
.provider-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.25rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .15s;
}
.provider-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ---------- Star rating ---------- */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Section spacing ---------- */
.section {
  padding: 4rem 1.25rem;
}
@media (min-width: 768px) {
  .section { padding: 5rem 2rem; }
}

/* ---------- Review table override ---------- */
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th,
.pay-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .88rem;
}
.pay-table th { color: #fff; font-weight: 600; background: rgba(255,255,255,.03); }
.pay-table td { color: var(--text-muted); }
.pay-table tr:hover td { background: rgba(255,85,0,.04); }

/* ---------- Author EEAT card ---------- */
.author-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  align-items: flex-start;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ---------- Promo card ---------- */
.promo-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255,85,0,.07) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform .25s, box-shadow .25s;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,85,0,.1);
}

/* ---------- Feature card ---------- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
  transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  font-size: 2.25rem;
  margin-bottom: .75rem;
  display: block;
}

/* ---------- Review card ---------- */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,85,0,.15) 0%, rgba(255,215,0,.08) 100%);
  border: 1px solid rgba(255,85,0,.2);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange), transparent, var(--gold));
  opacity: .12;
  z-index: 0;
}

/* ---------- Winner overlay ---------- */
.winner-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(10,10,11,.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* ---------- Spotlight glow ---------- */
.spotlight-glow {
  box-shadow: 0 0 60px rgba(255,85,0,.1), 0 0 120px rgba(255,85,0,.04);
  border-radius: var(--radius-xl);
}

/* ---------- Hamburger menu ---------- */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-nav.open { max-height: 400px; }

/* ---------- Responsive helpers ---------- */
@media (max-width: 639px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .slots-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .live-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .features-grid { grid-template-columns: 1fr !important; }
  .promo-grid { grid-template-columns: 1fr !important; }
  .reviews-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================================
   INNER PAGE STYLES
   ============================================================ */

/* Inner page prose enhancements */
.inner-page h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 3rem 0 1rem;
  color: #fff;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.inner-page h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: #fff;
}
.inner-page h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  color: var(--text);
}
.inner-page p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: .92rem;
}
.inner-page ul,
.inner-page ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.inner-page li {
  margin-bottom: .5rem;
  line-height: 1.7;
  font-size: .92rem;
}

/* Info box / callout */
.info-box {
  background: rgba(255,85,0,.05);
  border: 1px solid rgba(255,85,0,.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.info-box strong {
  color: var(--orange);
}

/* Warning box */
.warning-box {
  background: rgba(234,179,8,.06);
  border: 1px solid rgba(234,179,8,.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-box p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Step list */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}
.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}
.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.compare-table th,
.compare-table td {
  padding: .85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .88rem;
}
.compare-table th {
  background: rgba(255,85,0,.08);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.compare-table td {
  color: var(--text-muted);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,85,0,.03); }

/* Check mark list */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(34,197,94,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

/* FAQ section on inner pages */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--orange); }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-question::after {
  content: '-';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Provider card on game-providers page */
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform .25s, box-shadow .25s;
}
.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,85,0,.1);
}

/* Expandable section */
.expandable-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s;
}
.expandable-trigger:hover { border-color: var(--orange); }
.expandable-trigger::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--orange);
  transition: transform .3s;
}
.expandable-trigger.open::after { content: '-'; }
.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.expandable-content.open {
  max-height: 2000px;
}

/* Inner page table responsive wrapper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

/* Inner page responsive */
@media (max-width: 639px) {
  .inner-page { padding-left: .25rem; padding-right: .25rem; }
  .compare-table th,
  .compare-table td { padding: .6rem .75rem; font-size: .8rem; }
  .provider-grid-inner { grid-template-columns: 1fr !important; }
}
