/* 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(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.8);
  }
}

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

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

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

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

/* Utility Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}
.animate-slide-in {
  animation: slide-in-right 0.5s ease-out;
}
.animate-tilt {
  animation: tilt 2s ease-in-out infinite;
}

/* Prose Styling */
.prose {
  color: #e2e8f0;
  max-width: 65ch;
  line-height: 1.6;
}

.prose h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #22c55e;
}
.prose h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #38bdf8;
}
.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #a5f3fc;
}
.prose p {
  margin-bottom: 1.25rem;
}
.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose strong {
  font-weight: 700;
  color: #22c55e;
}
.prose a {
  color: #22c55e;
  text-decoration: underline;
}
.prose a:hover {
  color: #16a34a;
}

/* Custom Comic Book Effects */
.comic-border {
  border: 4px solid #22c55e;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3), 12px 12px 0 rgba(34, 197, 94, 0.2);
}

.comic-text {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5), -1px -1px 0 rgba(34, 197, 94, 0.3);
}

/* Gradient Backgrounds */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #1e40af 100%);
}

.card-gradient {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}

/* Provider Cloud */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 2rem;
}

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

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  /* place overlay below the header (header uses z-50) so the mobile menu (inside header)
     can sit above it. Keep overlay interactive only when active. */
  z-index: 40;
  pointer-events: none;
}

.mobile-overlay.active {
  display: block;
  pointer-events: auto;
}

/* Sticky CTA Banner */
.sticky-cta-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

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

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #22c55e;
  position: relative;
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #22c55e;
}

/* Review Cards */
.review-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-left: 4px solid #22c55e;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

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

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