/* Cobraplay Casino - Custom CSS */
/* Animation Keyframes & Prose Styling */

/* ===== CSS Variables ===== */
:root {
  --primary: #10b981;
  --primary-glow: #34d399;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --dark-bg: #0f0f0f;
  --dark-card: #1a1a1a;
  --dark-card-hover: #252525;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --gradient-cobra: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --gradient-magic: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ===== Base Styling ===== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* ===== Particle Background ===== */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 1.5s; }
.particle:nth-child(11) { left: 25%; animation-delay: 2.5s; }
.particle:nth-child(12) { left: 35%; animation-delay: 3.5s; }
.particle:nth-child(13) { left: 45%; animation-delay: 4.5s; }
.particle:nth-child(14) { left: 55%; animation-delay: 5.5s; }
.particle:nth-child(15) { left: 65%; animation-delay: 6.5s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* ===== Marquee Animation ===== */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 25s linear infinite;
}

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

/* ===== Pulse Glow Animation ===== */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4),
                0 0 40px rgba(16, 185, 129, 0.2),
                0 0 60px rgba(16, 185, 129, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6),
                0 0 60px rgba(16, 185, 129, 0.4),
                0 0 90px rgba(16, 185, 129, 0.2);
  }
}

.pulse-glow {
  animation: pulseGlow 2s 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(255,255,255,0.1) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ===== Float Animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* ===== Fade In Up ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Scale In ===== */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

/* ===== Countdown Animation ===== */
@keyframes countdownPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.countdown-number {
  animation: countdownPulse 1s ease-in-out;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient-cobra);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Card Styles ===== */
.glass-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-card {
  transition: all 0.3s ease;
}

.slot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

/* ===== Badge Styles ===== */
.badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-rtp { background: linear-gradient(135deg, #10b981, #059669); }
.badge-jackpot { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-bonus { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.badge-popular { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ===== Button Styles ===== */
.btn-primary {
  background: var(--gradient-cobra);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* ===== Prose Styling for Readability ===== */
.prose {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 65ch;
}

.prose h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

/* ===== Table Styles ===== */
.bets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.bets-table tr {
  background: var(--dark-card);
  transition: background 0.2s ease;
}

.bets-table tr:hover {
  background: var(--dark-card-hover);
}

.bets-table td {
  padding: 1rem;
}

.bets-table td:first-child {
  border-radius: 0.75rem 0 0 0.75rem;
}

.bets-table td:last-child {
  border-radius: 0 0.75rem 0.75rem 0;
}

.win-row { border-left: 3px solid #10b981; }
.lose-row { border-left: 3px solid #ef4444; }

/* ===== Provider Button ===== */
.provider-btn {
  background: var(--dark-card);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.provider-btn:hover {
  background: var(--dark-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Review Card ===== */
.review-card {
  background: var(--dark-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Star Rating ===== */
.star-rating {
  color: #f59e0b;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Header Sticky ===== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Hero Pattern ===== */
.hero-pattern {
  background-color: #1a1a1a;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-card-hover);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.125rem;
  }
}

/* ===== Cobra SVG Pattern ===== */
.cobra-pattern {
  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 5c-2 0-4 8-4 15s2 15 4 15 4-8 4-15-2-15-4-15zm-8 25c-1.5 1.5-3 5-2 8s3 5 5 4 3-4 2-7-3.5-6.5-5-5zm16 0c1.5 1.5 3 5 2 8s-3 5-5 4-3-4-2-7 3.5-6.5 5-5z' fill='%2310b981' fill-opacity='0.03'/%3E%3C/svg%3E");
}
