/* Custom Animations & Keyframes */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.5);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes tilt {
  0%, 100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
  }
}

/* Utility Classes */
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-tilt {
  animation: tilt 10s ease-in-out infinite;
}

.gradient-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
}

.gradient-gaming {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #7c3aed 100%);
}

.pattern-dots {
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Game Cards */
.game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.game-card:hover::before {
  transform: translateX(100%);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #1e40af);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

/* Prose Styling for Readability */
.prose {
  max-width: 65ch;
  color: #e2e8f0;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #60a5fa;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #93c5fd;
}

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

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

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

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #93c5fd;
}

/* Category Buttons */
.category-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.3));
  border: 2px solid rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(124, 58, 237, 0.4));
  opacity: 0;
  transition: opacity 0.3s;
}

.category-btn:hover::after {
  opacity: 1;
}

.category-btn:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge-jackpot {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-bonus {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Floating CTA Banner */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.floating-cta.visible {
  transform: translateY(0);
}

/* Review Cards */
.review-card {
  background: rgba(30, 64, 175, 0.2);
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(30, 64, 175, 0.3);
  border-left-color: #60a5fa;
  transform: translateX(5px);
}

/* Winners Table */
.winners-table .win {
  color: #10b981;
  font-weight: 600;
}

.winners-table .loss {
  color: #ef4444;
  font-weight: 600;
}

/* Tournament Card */
.tournament-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.2));
  border: 2px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
}

.tournament-card:hover {
  border-color: #a78bfa;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}
