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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.6);
  }
}

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

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

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

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes particle-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Base Styles */
body {
  background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1429 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent), radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent), radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%;
  animation: stars-twinkle 8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

@keyframes stars-twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

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

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffd700, transparent);
  border-radius: 50%;
  animation: particle-float 4s ease-in-out infinite;
  --tx: calc(var(--random-x) * 100px);
  --ty: calc(var(--random-y) * -200px);
}

/* CTA Styles */
.cta-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #0a0e27;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Glass Morphism */
.glass {
  background: rgba(15, 20, 41, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Card Styles */
.game-card {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.9) 0%, rgba(15, 20, 41, 0.9) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

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

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

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}

/* Tilt Effect */
.tilt {
  animation: tilt 3s ease-in-out infinite;
}

/* Slide Up Animation */
.slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

/* Prose Styling */
.prose {
  color: #e2e8f0;
  line-height: 1.75;
}

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

.prose h3 {
  color: #ffed4e;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  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: #ffd700;
  text-decoration: underline;
  transition: color 0.2s;
}

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

.prose strong {
  color: #ffd700;
  font-weight: 700;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.prose th {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  font-weight: 600;
}

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

/* 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, #ff6b6b, #ee5a6f);
  color: white;
}

.badge-rtp {
  background: linear-gradient(135deg, #51cf66, #37b24d);
  color: white;
}

.badge-bonus {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #0a0e27;
}

/* Mobile Menu System */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100000;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1429 100%);
  backdrop-filter: blur(25px);
  border-left: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100001;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.mobile-logo {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s ease 0.2s forwards;
}

.mobile-close-btn {
  color: #ffd700;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: rotate(180deg);
  animation: rotateIn 0.5s ease 0.3s forwards;
}

.mobile-close-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: rotate(0deg) scale(1.1);
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1.25rem 1rem;
  color: #e5e7eb;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(30px);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link:nth-child(1) { animation: slideInRight 0.6s ease 0.4s forwards; }
.mobile-nav-link:nth-child(2) { animation: slideInRight 0.6s ease 0.5s forwards; }
.mobile-nav-link:nth-child(3) { animation: slideInRight 0.6s ease 0.6s forwards; }
.mobile-nav-link:nth-child(4) { animation: slideInRight 0.6s ease 0.7s forwards; }

.mobile-nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

.mobile-nav-link:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(8px);
}

.mobile-nav-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover .mobile-nav-icon {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.1);
}

.mobile-cta-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-login-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid rgba(255, 215, 0, 0.6);
  color: #ffd700;
  font-weight: 700;
  text-align: center;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease 0.8s forwards;
}

.mobile-login-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  transform: translateY(-2px);
}

.mobile-play-btn {
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #0a0e27;
  font-weight: 800;
  text-align: center;
  border-radius: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease 0.9s forwards;
  position: relative;
  overflow: hidden;
}

.mobile-play-btn::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.6s ease;
}

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

.mobile-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

/* Mobile Menu Animations */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  to {
    opacity: 1;
    transform: rotate(0deg);
  }
}

/* Button Styles for Bonus Section */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #0a0e27;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-tertiary {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: white;
}

.btn-tertiary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Wheel of Fortune */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #ffd700;
  position: relative;
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #ff6b6b;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

  .prose h3 {
    font-size: 1.25rem;
  }
}

/* Sticky CTA Banner */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 1rem;
  box-shadow: 0 -5px 20px rgba(255, 215, 0, 0.4);
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

/* Rating Stars */
.stars {
  color: #ffd700;
}

/* Alert Banner */
.alert-banner {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 111, 0.2));
  border-left: 4px solid #ff6b6b;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* 3D Button Effect */
.btn-3d {
  background: linear-gradient(135deg, #4c6ef5 0%, #364fc7 100%);
  box-shadow: 0 4px 0 #2b3c87, 0 8px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}

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

/* Grid Pattern Background */
.grid-pattern {
  background-image: linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Glow Text */
.glow-text {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
}
