/* Custom Animations & Styles */

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

.floating-hero {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Animation for CTAs */
@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.8), 0 0 60px rgba(251, 191, 36, 0.4);
  }
}

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

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Category Button Effects */
.category-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.category-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Provider Badge Animation */
.provider-badge {
  transition: all 0.3s ease;
}

.provider-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Feature Card Parallax */
.feature-card {
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* Review Card Animation */
.review-card {
  transition: all 0.3s ease;
}

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

/* FAQ Item Animation */
.faq-item summary {
  transition: all 0.3s ease;
}

.faq-item[open] summary {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

/* Promo Card Glow */
.promo-card {
  position: relative;
  transition: all 0.3s ease;
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(45deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

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

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

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

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

.prose h3 {
  color: #fbbf24;
  font-weight: 600;
  font-size: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

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

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

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

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

.prose code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1em;
  font-style: italic;
  color: #d1d5db;
  margin: 1.5em 0;
}

/* Wheel of Fortune Spin */
#wheel {
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Feature Section Overlay Animation */
.feature-section img {
  transition: transform 0.5s ease;
}

.feature-section:hover img {
  transform: scale(1.05);
}

/* Mobile Menu Slide */
#mobileMenu {
  transition: all 0.3s ease;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bg-gradient-to-r {
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

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

  .prose h2 {
    font-size: 1.5em;
  }

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

/* Loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, #7c3aed 4%, #a855f7 25%, #7c3aed 36%);
  background-size: 1000px 100%;
}

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

::-webkit-scrollbar-track {
  background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #7c3aed, #a855f7);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #a855f7, #fbbf24);
}
