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

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

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

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

@keyframes particle-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -100px) rotate(360deg);
    opacity: 0;
  }
}

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

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

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

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

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

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

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

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(-45deg, #4a2c1a, #2d1810, #6b3f1f, #4a2c1a);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Pattern Background */
.pattern-bg {
  background-color: #2d1810;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(251, 191, 36, 0.05) 35px,
    rgba(251, 191, 36, 0.05) 70px
  );
}

/* Glass Effect */
.glass-effect {
  background: rgba(42, 24, 16, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Particle Effect */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(251, 191, 36, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float 4s ease-in infinite;
}

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

::-webkit-scrollbar-track {
  background: #2d1810;
}

::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Prose Styling */
.prose {
  color: #e7d7c9;
  line-height: 1.6;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #fbbf24;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose h1 {
  font-size: 2.25rem;
}
.prose h2 {
  font-size: 1.875rem;
}
.prose h3 {
  font-size: 1.5rem;
}

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

.prose ul,
.prose ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

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

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

.prose a {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.3s;
}

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

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

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(251, 191, 36, 0.3);
}

/* Badge Styles */
.badge-3d {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.badge-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(251, 191, 36, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 8px solid #fbbf24;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
}

.wheel-spinning {
  animation: spin-slow 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Countdown Animation */
.countdown {
  font-size: 2rem;
  font-weight: bold;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

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

/* Winner Table */
.winner-positive {
  color: #10b981;
  font-weight: 600;
}

.winner-negative {
  color: #ef4444;
  font-weight: 600;
}
