/* Custom Animations & Keyframes */
@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 starfield {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countdown {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

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

@keyframes parallax-slow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(50px);
  }
}

/* Utility Classes */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

.slide-in {
  animation: slide-in 0.6s ease-out forwards;
}

.parallax-element {
  animation: parallax-slow 20s ease-in-out infinite alternate;
}

/* Starfield Background */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 60px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50px 50px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 10px, #eee, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starfield 60s linear infinite;
  opacity: 0.5;
  z-index: -1;
}

/* Custom Gradient Backgrounds */
.gradient-space {
  background: linear-gradient(135deg, #00082a 0%, #1a0b3d 50%, #2d1b4e 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.gradient-hero {
  background: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

/* Prose Styling for Readability */
.prose {
  max-width: 65ch;
  line-height: 1.7;
}

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

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  font-size: 1.5rem;
  font-weight: 600;
}

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

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

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

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

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

::-webkit-scrollbar-track {
  background: #00082a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c3aed, #6d28d9);
}

/* Game Card Hover Effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 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-jackpot {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
}

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

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

/* 3D Button Effect */
.btn-3d {
  position: relative;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: 0 6px 0 #6d28d9, 0 8px 12px rgba(0, 0, 0, 0.3);
}

.btn-3d:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #6d28d9, 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #6d28d9, 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Alien Pattern */
.alien-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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a855f7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mobile Menu - No longer needed (using Tailwind utility classes) */

/* Bets Table Animation */
.bet-row {
  animation: slide-in 0.4s ease-out;
}

.bet-win {
  color: #10b981;
  font-weight: 600;
}

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

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

/* Countdown Animation */
.countdown-text {
  animation: countdown 1s ease-in-out;
}
