/* Animations */
@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 163, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 255, 163, 0.8));
  }
}

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

@keyframes pulse-border {
  0%,
  100% {
    border-color: rgba(0, 255, 163, 0.2);
  }
  50% {
    border-color: rgba(0, 255, 163, 0.6);
  }
}

@keyframes trail {
  0% {
    transform: translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(200vw) translateY(100vh);
    opacity: 0;
  }
}

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

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

.glow-box {
  animation: pulse-border 3s ease-in-out infinite;
}

/* Particle effects */
.particles-container::before,
.particles-container::after {
  content: "";
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: #00ffa3;
  border-radius: 50%;
  box-shadow: 0 0 1rem rgba(0, 255, 163, 0.8);
  animation: trail 15s linear infinite;
}

.particles-container::before {
  animation-delay: 0s;
  top: 10%;
  left: 20%;
}

.particles-container::after {
  animation-delay: 7s;
  top: 60%;
  left: 70%;
  background: #a855f7;
  box-shadow: 0 0 1rem rgba(168, 85, 247, 0.8);
}

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

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

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

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

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.prose a {
  color: #00ffa3;
  text-decoration: none;
  border-bottom: 0.0625rem solid rgba(0, 255, 163, 0.3);
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #22d3ee;
  border-bottom-color: #22d3ee;
}

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

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
}

.prose ul li::marker {
  color: #00ffa3;
}

.prose ol li::marker {
  color: #a855f7;
  font-weight: 600;
}

.prose blockquote {
  border-left: 0.25rem solid #00ffa3;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.5);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #1e293b;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: #334155;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #00ffa3;
  border-bottom: 0.125rem solid rgba(0, 255, 163, 0.2);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid rgba(100, 116, 139, 0.3);
  color: #cbd5e1;
}

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

.prose tr:hover {
  background: rgba(51, 65, 85, 0.5);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  border: 0.125rem solid rgba(0, 255, 163, 0.2);
}

.prose code {
  background: #1e293b;
  color: #22d3ee;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9375em;
}

.prose pre {
  background: #1e293b;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(0, 255, 163, 0.2);
}

.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(to right, transparent, rgba(0, 255, 163, 0.5), transparent);
  margin: 3rem 0;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

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

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }

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

  .prose {
    font-size: 1rem;
  }

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

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