/* Custom animations and overrides */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
  }
}

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

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

@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

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

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Utility classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

.animate-slide-in {
  animation: slide-in-right 0.5s ease-out;
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Prose styling for readability */
.prose {
  color: #e5e7eb;
  max-width: 65ch;
}

.prose h2 {
  color: #f3e8ff;
  font-weight: 700;
  font-size: 1.875rem;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #f3e8ff;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: #a78bfa;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #c4b5fd;
}

/* Custom gradient backgrounds */
.bg-league-gradient {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.bg-purple-league {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-hero-pattern {
  background-color: #1e1b4b;
  background-image: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
}

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

/* Game card hover effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu.hidden {
  transform: translateX(100%);
  opacity: 0;
}

/* Carousel scroll snap */
.carousel-container {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: start;
}

/* CTA pulse effect */
.cta-pulse {
  position: relative;
  overflow: visible;
}

.cta-pulse::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #a78bfa, #ec4899, #a78bfa);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  filter: blur(10px);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Winning/losing table colors */
.win-amount {
  color: #10b981;
  font-weight: 600;
}

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

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

/* Star rating */
.star-rating {
  color: #fbbf24;
}

/* Sticky banner */
.sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.sticky-banner.visible {
  transform: translateY(0);
}

/* 3D button effect */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.btn-3d:hover {
  transform: translateY(-2px);
}

.btn-3d:active {
  transform: translateY(1px);
}

/* Countdown animation */
@keyframes countdown-fade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Table responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Payment logo grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

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

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

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