/* 8-bit Retro Animations */
@keyframes pixelPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
  }
}

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

@keyframes floatUp {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

@keyframes tiltShake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}

@keyframes pixelGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
  }
}

@keyframes spinWheel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Base Styles */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #001a33 0%, #002147 50%, #001833 100%);
  background-attachment: fixed;
}

.pixel-corners {
  clip-path: polygon(
    0 8px,
    8px 8px,
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 8px,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 8px),
    0 calc(100% - 8px)
  );
}

.pixel-border {
  position: relative;
  border: 4px solid;
  border-image: repeating-linear-gradient(45deg, #ffd700, #ffd700 10px, #ffed4e 10px, #ffed4e 20px) 4;
}

.game-card {
  transition: all 0.3s ease;
  animation: floatUp 3s ease-in-out infinite;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.05);
  animation: tiltShake 0.5s ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #001a33;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pixelPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 0 #cc9900, 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #cc9900, 0 12px 30px rgba(255, 215, 0, 0.6);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #cc9900, 0 4px 10px rgba(255, 215, 0, 0.4);
}

.category-btn {
  background: rgba(0, 26, 51, 0.8);
  border: 2px solid #ffd700;
  color: #ffd700;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: #ffd700;
  color: #001a33;
  transform: translateZ(20px);
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

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

.marquee-content:hover {
  animation-play-state: paused;
}

.provider-cloud span {
  display: inline-block;
  animation: floatUp 3s ease-in-out infinite;
}

.provider-cloud span:nth-child(2n) {
  animation-delay: 0.5s;
}

.provider-cloud span:nth-child(3n) {
  animation-delay: 1s;
}

/* Prose Styling */
.prose {
  max-width: 65ch;
  line-height: 1.7;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffed4e;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #e0e0e0;
}

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

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

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

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

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

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

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

/* Wheel Animation */
.wheel {
  animation: spinWheel 20s linear infinite;
}

.wheel:hover {
  animation-play-state: paused;
}

/* Sticky CTA Banner */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  animation: slideInRight 0.5s ease-out;
}

/* Card Glow Effect */
.card-glow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 215, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card-glow:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #001a33;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 6px;
}

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

/* Pattern Background */
.pattern-bg {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 215, 0, 0.03) 10px,
    rgba(255, 215, 0, 0.03) 20px
  );
}

/* Parallax */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Rating Stars */
.star-rating {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}
