/* 8-bit Duck Hunt Theme - Custom Animations & Overrides */

@keyframes pixelPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes duckFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes pixelGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 235, 0, 0.4), 0 0 20px rgba(255, 235, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 235, 0, 0.8), 0 0 40px rgba(255, 235, 0, 0.4);
  }
}

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

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

@keyframes particle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}

/* 8-bit Pixel Font Effect */
.pixel-text {
  font-family: "Courier New", monospace;
  text-rendering: optimizeSpeed;
  image-rendering: pixelated;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

/* Retro CTA Button */
.retro-btn {
  position: relative;
  background: linear-gradient(180deg, #ffeb00 0%, #ffd700 100%);
  border: 4px solid #000;
  box-shadow: 4px 4px 0px #000, 0 0 20px rgba(255, 235, 0, 0.6);
  transition: all 0.1s ease;
  text-transform: uppercase;
  font-weight: 900;
  color: #000;
  image-rendering: pixelated;
}

.retro-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000, 0 0 30px rgba(255, 235, 0, 0.9);
}

.retro-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #000;
}

/* 8-bit Card Style */
.pixel-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 3px solid #333;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 4px 4px 0px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

.pixel-card:hover {
  border-color: #ffeb00;
  animation: pixelPulse 0.6s ease-in-out;
}

/* Slot Game Card */
.slot-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slot-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 235, 0, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
}

.slot-card:hover::before {
  left: 100%;
}

/* Hero Floating Animation */
.hero-float {
  animation: duckFloat 4s ease-in-out infinite;
}

/* Glow Border Effect */
.glow-border {
  animation: pixelGlow 2s ease-in-out infinite;
}

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

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

/* Particle Effect */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #ffeb00;
  pointer-events: none;
  z-index: 1;
  animation: particle 3s ease-out infinite;
}

/* Sticky CTA Banner */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  animation: slideInFromRight 0.5s ease-out;
}

@media (max-width: 768px) {
  .sticky-cta {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  z-index: 9998;
  display: none;
}

.mobile-menu.active {
  display: flex;
}

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

.prose h2 {
  color: #ffeb00;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

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

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

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th {
  background: #1a1a1a;
  color: #ffeb00;
  padding: 0.75rem;
  text-align: left;
  border: 2px solid #333;
  font-weight: 700;
}

.prose td {
  padding: 0.75rem;
  border: 2px solid #333;
  background: #0a0a0a;
}

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

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #ffeb00;
  border: 2px solid #000;
}

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

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #ffeb00;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid #000;
  box-shadow: 2px 2px 0px #000;
}

/* Alert Banner */
.alert-banner {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  border: 3px solid #000;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  margin: 1rem 0;
}

/* Rating Stars */
.stars {
  color: #ffeb00;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

/* Grid Pattern Background */
.grid-bg {
  background-image: linear-gradient(rgba(255, 235, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 235, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
