/* Animations */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.5);
  }
}

@keyframes tilt {
  0%, 100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
  }
}

@keyframes pulse-border {
  0%, 100% {
    border-color: rgba(0, 212, 255, 0.3);
  }
  50% {
    border-color: rgba(0, 212, 255, 0.8);
  }
}

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

/* Custom Classes */
.glow-text {
  animation: glow 2s ease-in-out infinite;
}

.tilt-card {
  animation: tilt 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

.shadow-neon {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
}

.shadow-neon-soft {
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
}

.neon-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e5e7eb;
  max-width: 100%;
  line-height: 1.7;
}

.prose h2 {
  font-size: 2em;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.5em;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4em;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #b800ff);
}

.prose h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #00d4ff;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose p {
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #d1d5db;
}

.prose a {
  color: #00d4ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #b800ff;
  text-decoration-color: rgba(184, 0, 255, 0.5);
}

.prose strong {
  font-weight: 600;
  color: #ffffff;
}

.prose ul,
.prose ol {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
  line-height: 1.7;
  color: #d1d5db;
}

.prose li::marker {
  color: #00d4ff;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  border-bottom: 2px solid rgba(0, 212, 255, 0.4);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #00d4ff;
  background-color: rgba(26, 26, 36, 0.5);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  color: #d1d5db;
}

.prose tbody tr:hover {
  background-color: rgba(26, 26, 36, 0.3);
}

.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  border-left: 4px solid #00d4ff;
  font-style: italic;
  color: #9ca3af;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.prose code {
  padding: 0.2em 0.4em;
  background-color: rgba(26, 26, 36, 0.8);
  border-radius: 0.25rem;
  color: #00d4ff;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1rem;
  background-color: rgba(26, 26, 36, 0.8);
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #e5e7eb;
}

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

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

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

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
  }
}

/* Ensure readability - no dark text on dark bg, no light text on light bg */
.prose {
  background-color: #0a0a0f;
  color: #e5e7eb;
}

.prose-invert {
  --tw-prose-body: #e5e7eb;
  --tw-prose-headings: #ffffff;
  --tw-prose-links: #00d4ff;
  --tw-prose-bold: #ffffff;
  --tw-prose-quotes: #9ca3af;
  --tw-prose-code: #00d4ff;
}
