/* ============================================
   Westace Casino – Custom CSS
   Animations, overrides, prose styling
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --brand: #2563eb;
  --brand-hover: #3b82f6;
  --brand-glow: rgba(37, 99, 235, 0.45);
  --gold: #d4a53c;
  --gold-light: #f0d060;
  --dark: #08080f;
  --surface: #0f0f1a;
  --card: #161625;
  --card-border: #1e1e35;
  --text: #eeeef2;
  --text-muted: #9898b0;
  --green: #22c55e;
  --red: #ef4444;
}

/* --- Global --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============================================
   ANIMATION 1 — MARQUEE
   ============================================ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

/* ============================================
   ANIMATION 2 — FLOATING PARTICLES (CSS only)
   ============================================ */
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50%      { transform: translateY(-30px) scale(1.15); opacity: 1; }
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle-field span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: float-particle 4s ease-in-out infinite;
}

.particle-field span:nth-child(1) { left: 8%;  top: 20%; animation-delay: 0s;   animation-duration: 5s;  }
.particle-field span:nth-child(2) { left: 22%; top: 55%; animation-delay: 0.8s; animation-duration: 4.5s; }
.particle-field span:nth-child(3) { left: 40%; top: 15%; animation-delay: 1.6s; animation-duration: 5.2s; }
.particle-field span:nth-child(4) { left: 55%; top: 70%; animation-delay: 2.2s; animation-duration: 3.8s; }
.particle-field span:nth-child(5) { left: 70%; top: 35%; animation-delay: 0.4s; animation-duration: 4.8s; }
.particle-field span:nth-child(6) { left: 85%; top: 60%; animation-delay: 1.2s; animation-duration: 5.5s; }
.particle-field span:nth-child(7) { left: 15%; top: 80%; animation-delay: 2.8s; animation-duration: 4.2s; }
.particle-field span:nth-child(8) { left: 92%; top: 12%; animation-delay: 3.4s; animation-duration: 5.8s; }

/* ============================================
   KEYFRAMES — SHARED
   ============================================ */

/* CTA pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--brand-glow), 0 0 24px transparent; }
  50%      { box-shadow: 0 0 16px var(--brand-glow), 0 0 40px var(--brand-glow); }
}

.cta-pulse {
  animation: pulse-glow 2.4s 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(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle float for hero image */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.float-anim {
  animation: gentle-float 4s ease-in-out infinite;
}

/* Fade-in-up (triggered via JS Intersection Observer) */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Star twinkle */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* --- Card hover lift --- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* --- Slot card overlay --- */
.slot-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.slot-card img {
  transition: transform 0.4s ease;
}

.slot-card:hover img {
  transform: scale(1.08);
}

.slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 15, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1rem;
}

.slot-card:hover .slot-overlay {
  opacity: 1;
}

/* --- Badge styles --- */
.game-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-rtp      { background: #065f46; color: #6ee7b7; }
.badge-jackpot  { background: #713f12; color: #fcd34d; }
.badge-bonus    { background: #581c87; color: #d8b4fe; }
.badge-popular  { background: #1e3a5f; color: #93c5fd; }

/* --- Provider pill (3D-ish) --- */
.provider-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, #1e1e35 0%, #12121f 100%);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.provider-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  border-color: var(--brand);
}

/* --- Payment tab --- */
.pay-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.pay-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* --- Stars --- */
.star-filled { color: #fbbf24; }
.star-empty  { color: #3a3a50; }

/* --- Bets table --- */
.bets-table tbody tr {
  transition: background 0.15s ease;
}

.bets-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.06);
}

/* ============================================
   PROSE — Review Readability
   ============================================ */
.prose-casino {
  line-height: 1.72;
  color: var(--text);
  font-size: 1rem;
}

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

.prose-casino h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: -0.005em;
}

.prose-casino p {
  margin-bottom: 1.15rem;
  color: #c8c8d8;
}

.prose-casino ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1.15rem;
}

.prose-casino ul li {
  margin-bottom: 0.35rem;
  color: #c8c8d8;
}

.prose-casino a {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-casino a:hover {
  color: var(--gold);
}

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

.prose-casino blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 639px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-grid .hero-cta-col {
    order: 1;
  }

  .hero-grid .hero-img-col {
    order: 2;
    max-width: 280px;
    margin: 0 auto;
  }

  .marquee-track {
    animation-duration: 18s;
  }

  .prose-casino h2 { font-size: 1.35rem; }
  .prose-casino h3 { font-size: 1.1rem;  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .marquee-track {
    animation-duration: 22s;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.glass {
  background: rgba(15, 15, 26, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.section-gap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-gap {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* Hide scrollbar for marquee wrapper */
.marquee-wrapper {
  overflow: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.marquee-wrapper::-webkit-scrollbar { display: none; }
