/* Neon Glow Effects */
.shadow-neon {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
}

.shadow-neon-strong {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(6, 182, 212, 0.6);
}

.shadow-neon-box {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Animations */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(6, 182, 212, 0.6);
  }
  50% {
    text-shadow: 0 0 30px rgba(139, 92, 246, 1), 0 0 60px rgba(6, 182, 212, 0.8);
  }
}

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

@keyframes particle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Particle Background */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: particle 15s linear infinite;
}

.particles-bg::before {
  left: 20%;
  animation-delay: 0s;
}

.particles-bg::after {
  left: 60%;
  animation-delay: 7s;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, transparent 70%);
}

/* Parallax Effect */
.parallax-layer {
  transition: transform 0.5s ease-out;
}

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

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

/* Prose Styling for Markdown Content */
.prose {
  color: #e5e7eb;
  line-height: 1.65;
}

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

.prose h3 {
  color: #a78bfa;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.prose p {
  margin-bottom: 1.5rem;
  color: #d1d5db;
  line-height: 1.75;
}

.prose a {
  color: #22d3ee;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #06b6d4;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  color: #d1d5db;
}

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

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

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.prose li::marker {
  color: #8b5cf6;
}

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

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

.prose blockquote {
  border-left: 0.25rem solid #8b5cf6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(139, 92, 246, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose thead {
  background: #1f2937;
}

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

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #374151;
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prose code {
  background: #1f2937;
  color: #fbbf24;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: #1f2937;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #374151;
}

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

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

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

/* Mobile Menu Background */
#mobile-menu {
  background-color: #1f2937;
}

/* Ensure readability - no dark text on dark backgrounds */
body {
  background-color: #111827;
  color: #e5e7eb;
}

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