/* 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(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.9);
  }
}

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

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

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

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

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

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

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

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Wood Texture Background */
.wood-texture {
  background: linear-gradient(135deg, #6b4423 0%, #4a2c16 50%, #6b4423 100%);
  background-size: 200% 200%;
  position: relative;
}

.wood-texture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.1) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.1) 6px
    ),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0px, transparent 1px, transparent 2px, rgba(0, 0, 0, 0.05) 3px);
  opacity: 0.3;
  pointer-events: none;
}

/* Gradient Backgrounds */
.gradient-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

.gradient-wood {
  background: linear-gradient(135deg, #8b6914 0%, #6b4423 50%, #4a2c16 100%);
}

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

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #4a2c16;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffd700;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.5rem;
}
.prose h2 {
  font-size: 2rem;
}
.prose h3 {
  font-size: 1.5rem;
}

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

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

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

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

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

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

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

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

/* Sticky Elements */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

/* Game Card Styles */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-card:hover {
  transform: scale(1.05);
}

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

.badge-jackpot {
  background: linear-gradient(135deg, #ff0000 0%, #ff6b00 100%);
  color: white;
}

.badge-high-rtp {
  background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
  color: white;
}

.badge-bonus {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #4a2c16;
}

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

/* Review Star Styles */
.star-rating {
  color: #ffd700;
  font-size: 1.25rem;
}

/* Wheel Spinner */
.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);
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 2rem;
  }
  .prose h2 {
    font-size: 1.5rem;
  }
  .prose h3 {
    font-size: 1.25rem;
  }
}
