/* Retro Background */
.retro-bg {
  background: linear-gradient(180deg, #001a33 0%, #003366 50%, #001a33 100%);
  min-height: 100vh;
}

/* Pixel Text Effect */
.pixel-text {
  text-shadow: 2px 2px 0px rgba(0, 255, 255, 0.5), 4px 4px 0px rgba(255, 255, 0, 0.3);
  letter-spacing: 2px;
}

/* Retro Buttons */
.retro-button {
  display: inline-block;
  text-align: center;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.retro-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 0, 0.5);
}

.retro-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.retro-button-small {
  display: inline-block;
  text-align: center;
  border: 2px solid rgba(0, 255, 255, 0.5);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.retro-button-small:hover {
  border-color: rgba(255, 255, 0, 0.8);
  transform: translateY(-2px);
}

/* Retro Link */
.retro-link {
  position: relative;
  text-decoration: none;
}

.retro-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.retro-link:hover::after {
  width: 100%;
}

/* Hero Card Floating Animation */
.floating {
  animation: floating 6s ease-in-out infinite;
}

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

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

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

/* Pulse Glow Animation */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 0, 0.8);
  }
}

/* Shadow Glow */
.shadow-glow {
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.6);
}

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

.prose-custom p {
  margin-bottom: 1rem;
}

.prose-custom h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

/* Details/Summary Styling */
details summary {
  transition: all 0.3s ease;
}

details summary:hover {
  color: #fbbf24;
}

details[open] summary {
  margin-bottom: 1rem;
}

/* Table Responsiveness */
@media (max-width: 768px) {
  table {
    font-size: 0.75rem;
  }

  th,
  td {
    padding: 0.5rem !important;
  }
}

/* Fade Transition */
.transition-opacity {
  transition: opacity 0.3s ease;
}

/* Norton Commander Style Borders */
.hero-card {
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffff, #ffff00, #00ffff);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Marquee Effect for Game Providers (Optional) */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Menu Transition */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* CTA Banner Slide Animation */
#ctaBanner {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Retro Grid Pattern Background (Optional) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}
