/* ============================================
   Westace Casino – Custom CSS
   Theme: Dark Brown + Vivid Purple + Barbie West
   Animations: Marquee, Parallax
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --brown-950: #0d0603;
  --brown-900: #1a0e08;
  --brown-850: #221209;
  --brown-800: #2d1810;
  --brown-700: #3d2317;
  --brown-600: #5a3525;
  --brown-500: #7a4d35;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --gold-400: #d4a853;
  --gold-500: #b8942e;
  --cream: #fef3e2;
  --cream-muted: #c9a88c;
  --cream-dim: #8b7355;
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--brown-900);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--brown-950);
}
::-webkit-scrollbar-thumb {
  background: var(--brown-600);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-600);
}

/* ============================================
   ANIMATION TYPE 1: MARQUEE
   ============================================ */
@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;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* ============================================
   ANIMATION TYPE 2: PARALLAX
   ============================================ */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.parallax-star {
  position: absolute;
  border-radius: 50%;
  background: var(--purple-500);
  opacity: 0.08;
  animation: float-drift 20s ease-in-out infinite;
}

.parallax-star:nth-child(1) { width: 300px; height: 300px; top: 5%; left: -5%; animation-delay: 0s; }
.parallax-star:nth-child(2) { width: 200px; height: 200px; top: 30%; right: -8%; animation-delay: -7s; background: var(--pink-500); }
.parallax-star:nth-child(3) { width: 250px; height: 250px; top: 55%; left: 10%; animation-delay: -14s; }
.parallax-star:nth-child(4) { width: 180px; height: 180px; top: 75%; right: 15%; animation-delay: -3s; background: var(--pink-400); }
.parallax-star:nth-child(5) { width: 220px; height: 220px; top: 90%; left: -10%; animation-delay: -10s; }

@keyframes float-drift {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  25% { transform: translateY(-30px) translateX(15px) scale(1.05); }
  50% { transform: translateY(-10px) translateX(-10px) scale(0.97); }
  75% { transform: translateY(-40px) translateX(20px) scale(1.02); }
}

/* --- SVG Background Pattern (Western star) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l4 12h13l-10 8 4 12-11-8-11 8 4-12-10-8h13z' fill='%23a855f7' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ============================================
   PULSATING & GLOW EFFECTS
   ============================================ */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.1); }
  50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.2); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countdown-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes border-dance {
  0%, 100% { border-color: var(--purple-500); }
  33% { border-color: var(--pink-400); }
  66% { border-color: var(--gold-400); }
}

/* --- Utility Animation Classes --- */
.animate-fade-up {
  animation: fade-up 0.7s ease-out both;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out both;
}

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

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

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

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

.animate-border-dance {
  animation: border-dance 4s ease-in-out infinite;
}

/* Stagger children animations */
.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; }

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

/* --- CTA Buttons --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.45);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-cta-outline {
  background: transparent;
  border: 2px solid var(--purple-500);
  color: var(--purple-400);
}

.btn-cta-outline:hover {
  background: var(--purple-600);
  color: #fff;
  border-color: var(--purple-600);
}

.btn-cta-pink {
  background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
}

.btn-cta-pink:hover {
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

/* --- Card Styles (iOS rounded) --- */
.card {
  background: var(--brown-800);
  border-radius: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.08);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-game {
  position: relative;
}

.card-game img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  border-radius: 1.25rem 1.25rem 0 0;
}

/* --- Badge Styles --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
}

.badge-rtp {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.badge-jackpot {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--brown-900);
}

.badge-bonus {
  background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
  color: #fff;
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: var(--brown-900);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, var(--brown-800) 0%, var(--brown-850) 50%, var(--brown-900) 100%);
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23a855f7'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 14, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  transition: all 0.3s ease;
}

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

/* --- Nav Menu --- */
.nav-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.open {
  max-height: 400px;
}

@media (min-width: 768px) {
  .nav-menu {
    max-height: none;
    overflow: visible;
  }
}

/* --- Section Titles --- */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Tab Controls --- */
.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: var(--brown-700);
  color: var(--cream-muted);
}

.tab-btn.active {
  background: var(--purple-600);
  color: #fff;
  border-color: var(--purple-500);
}

.tab-btn:hover:not(.active) {
  background: var(--brown-600);
  color: var(--cream);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade-up 0.4s ease-out;
}

/* --- Review Stars --- */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  color: #f59e0b;
  font-size: 1rem;
}

.star.empty {
  color: var(--brown-600);
}

/* --- Countdown Display --- */
.countdown-text {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease;
}

/* --- Feature Spotlight Glow --- */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500), var(--purple-500));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-border:hover::after {
  opacity: 0.6;
}

/* --- Providers 3D Buttons --- */
.provider-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-muted);
  background: linear-gradient(180deg, var(--brown-700) 0%, var(--brown-800) 100%);
  border: 1px solid var(--brown-600);
  border-radius: 0.75rem;
  box-shadow: 0 3px 0 var(--brown-950), 0 6px 12px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
  cursor: default;
  user-select: none;
}

.provider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--brown-950), 0 10px 20px rgba(0,0,0,0.35);
  color: var(--cream);
  border-color: var(--purple-500);
}

.provider-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--brown-950), 0 2px 6px rgba(0,0,0,0.2);
}

/* ============================================
   PROSE STYLING (Review / Content)
   ============================================ */
.prose {
  max-width: 72ch;
  color: var(--cream-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.prose h2 {
  color: var(--cream);
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.prose h3 {
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
}

.prose strong {
  color: var(--cream);
  font-weight: 700;
}

.prose a {
  color: var(--purple-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--pink-400);
}

.prose blockquote {
  border-left: 3px solid var(--purple-500);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--cream-dim);
  font-style: italic;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Grid System --- */
.grid-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .grid-slots { grid-template-columns: repeat(4, 1fr); }
}

.grid-live {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-live { grid-template-columns: repeat(4, 1fr); }
}

.grid-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-features { grid-template-columns: repeat(4, 1fr); }
}

.grid-promos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-promos { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-promos { grid-template-columns: repeat(3, 1fr); }
}

.grid-reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-reviews { grid-template-columns: repeat(3, 1fr); }
}

/* --- 18+ Badge SVG --- */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #ef4444;
  color: #ef4444;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Mobile Nav Toggle --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* --- Table Styling --- */
.payment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.payment-table thead th {
  background: var(--brown-700);
  color: var(--cream);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-table thead th:first-child {
  border-radius: 0.75rem 0 0 0;
}

.payment-table thead th:last-child {
  border-radius: 0 0.75rem 0 0;
}

.payment-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.06);
  color: var(--cream-muted);
}

.payment-table tbody tr:hover td {
  background: rgba(168, 85, 247, 0.04);
}

.payment-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 0.75rem;
}

.payment-table tbody tr:last-child td:last-child {
  border-radius: 0 0 0.75rem 0;
}

/* --- Tooltips / Info --- */
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--purple-400);
  font-weight: 600;
}

/* --- Author Section --- */
.author-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: linear-gradient(135deg, var(--brown-800), var(--brown-700));
  border-radius: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --- Overlay Text on Feature Images --- */
.feature-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

.feature-overlay img {
  width: 100%;
  display: block;
}

.feature-overlay .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(13,6,3,0.3) 0%, rgba(13,6,3,0.85) 100%);
  padding: 2rem;
  text-align: center;
}

/* --- Responsive Breakpoint Helpers --- */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
.hide-desktop { display: block; }
@media (min-width: 768px) { .hide-desktop { display: none; } }

/* --- Selection Color --- */
::selection {
  background: var(--purple-600);
  color: #fff;
}
