/* Keyframe Animations */
@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5), 0 0 20px rgba(56, 189, 248, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.8), 0 0 40px rgba(56, 189, 248, 0.5);
  }
}

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

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

/* Glow Text Effect */
.glow-text {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Bonus Badge Animation */
.bonus-badge {
  animation: bonus-float 3s ease-in-out infinite;
}

/* Game Card Hover Effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  animation: card-tilt 0.3s ease forwards;
}

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

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prose Styling for Markdown Content */
.prose {
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #38bdf8;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  color: #cbd5e1;
  line-height: 1.4;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #cbd5e1;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #cbd5e1;
  line-height: 1.7;
}

.prose a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

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

.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #cbd5e1;
  line-height: 1.6;
}

.prose blockquote {
  border-left: 4px solid #38bdf8;
  padding-left: 1em;
  margin-left: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #94a3b8;
}

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

.prose thead {
  background-color: rgba(15, 23, 42, 0.8);
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  color: #cbd5e1;
}

.prose tbody tr {
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: rgba(51, 65, 85, 0.3);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.prose code {
  background-color: rgba(51, 65, 85, 0.5);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #38bdf8;
}

.prose pre {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
}

/* Ensure no dark text on dark backgrounds */
.prose * {
  color: inherit;
}

/* Override any potential conflicts */
.bg-slate-950 .prose,
.bg-slate-900 .prose,
.bg-slate-800 .prose {
  color: #cbd5e1;
}
