/* Particle Background Animation */
.particle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(6, 182, 212, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(6, 182, 212, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(99, 102, 241, 0.2), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

/* Bonus Glow Effect */
.bonus-glow {
  animation: bonusGlow 3s ease-in-out infinite;
}

@keyframes bonusGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5), 0 0 60px rgba(99, 102, 241, 0.3);
  }
}

/* Game Card Tilt Effect */
.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

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

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

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

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

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

.prose h4 {
  color: #67e8f9;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

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

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

.prose a:hover {
  color: #67e8f9;
}

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

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  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;
  line-height: 1.7;
  color: #cbd5e1;
}

.prose ul > li::marker {
  color: #06b6d4;
}

.prose ol > li::marker {
  color: #06b6d4;
}

.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: #1e293b;
  border-bottom: 2px solid #334155;
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #22d3ee;
  border: 1px solid #334155;
}

.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.prose tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.5);
}

.prose tbody tr:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.5);
}

.prose tbody tr:hover {
  background-color: rgba(6, 182, 212, 0.1);
}

.prose blockquote {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1.5em;
  border-left: 4px solid #06b6d4;
  font-style: italic;
  color: #94a3b8;
}

.prose code {
  color: #22d3ee;
  background-color: rgba(15, 23, 42, 0.8);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

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

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

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

.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: 0;
  border-top: 1px solid #334155;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem;
  }
}

/* Ensure readability - no dark text on dark backgrounds */
.prose {
  background-color: transparent;
}

.prose p,
.prose li,
.prose td {
  color: #cbd5e1; /* Light text */
}

.prose h2,
.prose h3,
.prose h4 {
  color: #22d3ee; /* Cyan headings for contrast */
}
