/* Neon Text Effects */
.neon-text {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
}

.neon-text-amber {
  text-shadow: 0 0 10px #ffbf00, 0 0 20px #ffbf00, 0 0 30px #ffbf00, 0 0 40px #ffbf00;
}

.neon-text-cyan {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.neon-text-multi {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #ffbf00, 0 0 30px #00ffff, 0 0 40px #ffbf00, 0 0 50px #00ffff;
}

/* Neon Glow Effects */
.neon-glow {
  box-shadow: 0 0 10px rgba(255, 191, 0, 0.5), 0 0 20px rgba(255, 191, 0, 0.3), 0 0 30px rgba(255, 191, 0, 0.2);
}

.neon-glow-box {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Marquee Animation */
.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  animation: marquee 40s linear infinite;
}

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

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

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Parallax Base */
.parallax {
  transition: transform 0.1s ease-out;
}

/* Enhanced prose styling for markdown content with better contrast and readability */
.prose {
  max-width: 100%;
  color: #e0e0e0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #ffbf00;
  text-shadow: 0 0 15px rgba(255, 191, 0, 0.4);
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #c4b5fd;
}

.prose p {
  margin-bottom: 1.5em;
  color: #d1d5db;
}

.prose p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e5e7eb;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
  color: #d1d5db;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
}

.prose li::marker {
  color: #ffbf00;
}

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

.prose em {
  font-style: italic;
  color: #00ffff;
}

.prose a {
  color: #00ffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.prose a:hover {
  color: #ffbf00;
  border-bottom-color: #ffbf00;
  text-shadow: 0 0 8px rgba(255, 191, 0, 0.5);
}

.prose blockquote {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding-left: 1.5em;
  border-left: 0.25rem solid #ffbf00;
  font-style: italic;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.75rem;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), 0 0 60px rgba(255, 191, 0, 0.1);
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 255, 255, 0.1));
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #ffbf00;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 191, 0, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(0, 255, 255, 0.05);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose code {
  font-family: "Courier New", monospace;
  font-size: 0.875em;
  padding: 0.125em 0.375em;
  background: rgba(139, 92, 246, 0.15);
  color: #00ffff;
  border-radius: 0.25rem;
}

.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffbf00, #00ffff, transparent);
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #00ffff, #ffbf00);
  border-radius: 4px;
}

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

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

.game-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(255, 191, 0, 0.3);
}

/* Button Hover Effects */
a[href="/play"] {
  transition: all 0.3s ease;
}

a[href="/play"]:hover {
  transform: translateY(-2px);
}

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

  .prose h2 {
    font-size: 1.75rem;
  }

  .prose h3 {
    font-size: 1.375rem;
  }

  .prose h4 {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }

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

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

  .prose h4 {
    font-size: 1.0625rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00ffff, #ffbf00);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ffbf00, #00ffff);
}
