/* Westace Casino - Custom CSS */
/* Animation Keyframes & Overrides */

:root {
  --emerald-dark: #064e3b;
  --emerald-mid: #059669;
  --emerald-light: #34d399;
  --emerald-glow: #6ee7b7;
  --cave-dark: #0c1a14;
  --cave-darker: #050d09;
  --gold-accent: #fbbf24;
  --gold-light: #fcd34d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--cave-darker) 0%, var(--cave-dark) 50%, #0f2419 100%);
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

/* Prose Styling for Readability */
.prose {
  max-width: 75ch;
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h2 {
  color: var(--emerald-light);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.prose h3 {
  color: #f1f5f9;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

.prose li {
  margin-bottom: 0.5rem;
}

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

.prose a:hover {
  color: var(--emerald-glow);
}

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

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

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

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

/* Parallax Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(-1deg); }
}

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

.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3),
                0 0 40px rgba(52, 211, 153, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.5),
                0 0 60px rgba(52, 211, 153, 0.2),
                0 0 80px rgba(52, 211, 153, 0.1);
  }
}

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

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

.shimmer {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(110, 231, 183, 0.15) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* Crystal Sparkle */
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-delay-1 { animation-delay: 0.3s; }
.sparkle-delay-2 { animation-delay: 0.6s; }
.sparkle-delay-3 { animation-delay: 0.9s; }

/* Button Hover Effects */
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-mid) 0%, var(--emerald-dark) 100%);
  border: 1px solid var(--emerald-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-accent) 0%, #d97706 100%);
  color: #1c1917;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

/* Card Styles */
.card-emerald {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.4) 0%, rgba(5, 13, 9, 0.8) 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-emerald:hover {
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Slot Card */
.slot-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(15, 36, 25, 0.9) 0%, rgba(5, 13, 9, 0.95) 100%);
  border: 1px solid rgba(52, 211, 153, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-card:hover {
  border-color: var(--emerald-light);
  transform: scale(1.03);
  z-index: 10;
}

.slot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 13, 9, 0.9) 100%);
  pointer-events: none;
}

/* Badge Styles */
.badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge-jackpot {
  background: linear-gradient(135deg, var(--gold-accent) 0%, #d97706 100%);
  color: #1c1917;
}

.badge-bonus {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
}

.badge-popular {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

/* Hero Section Pattern */
.hero-pattern {
  background-color: var(--cave-dark);
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(6, 78, 59, 0.2) 0%, transparent 50%),
    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 0L60 30L30 60L0 30z' fill='%23059669' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Cave Crystal Pattern */
.crystal-pattern {
  background-image: 
    radial-gradient(ellipse at 10% 20%, rgba(110, 231, 183, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(52, 211, 153, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 78, 59, 0.1) 0%, transparent 60%);
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 9, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.1);
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  background: rgba(5, 13, 9, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

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

/* Provider Button */
.provider-btn {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.5) 0%, rgba(5, 13, 9, 0.7) 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #94a3b8;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.provider-btn:hover {
  background: linear-gradient(145deg, rgba(5, 150, 105, 0.6) 0%, rgba(6, 78, 59, 0.8) 100%);
  border-color: var(--emerald-light);
  color: white;
  transform: translateY(-2px) rotateX(5deg);
  box-shadow: 0 8px 20px rgba(52, 211, 153, 0.2);
}

/* Review Card */
.review-card {
  background: linear-gradient(145deg, rgba(15, 36, 25, 0.6) 0%, rgba(5, 13, 9, 0.8) 100%);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-4px);
}

/* Star Rating */
.star-filled {
  color: var(--gold-accent);
}

.star-empty {
  color: rgba(148, 163, 184, 0.3);
}

/* Feature Overlay */
.feature-overlay {
  position: relative;
}

.feature-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 13, 9, 0.7) 60%, rgba(5, 13, 9, 0.95) 100%);
  border-radius: inherit;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--cave-dark) 50%, var(--emerald-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--cave-dark) 0%, var(--cave-darker) 100%);
  border-top: 1px solid rgba(52, 211, 153, 0.1);
}

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

::-webkit-scrollbar-track {
  background: var(--cave-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--emerald-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-mid);
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
}

/* Selection */
::selection {
  background: var(--emerald-mid);
  color: white;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: 2px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--gold-accent) 50%, var(--emerald-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
