/* Animations */
@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.4);
  }
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

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

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

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

/* Particle Background */
.particle-bg::before,
.particle-bg::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  animation: particle-float 8s ease-in-out infinite;
}

.particle-bg::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.particle-bg::after {
  bottom: 10%;
  right: 10%;
  animation-delay: 4s;
}

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

.table-responsive table {
  min-width: 600px;
}

/* Prose Styling for Markdown Content */
.prose-custom {
  max-width: 100%;
  color: rgb(203, 213, 225);
  line-height: 1.75;
}

.prose-custom h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: rgb(52, 211, 153);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.prose-custom h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: rgb(251, 191, 36);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose-custom p {
  margin-bottom: 1.5rem;
  color: rgb(203, 213, 225);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.prose-custom ul,
.prose-custom ol {
  margin: 1.5rem 0;
  padding-left: 1.75rem;
  color: rgb(203, 213, 225);
}

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

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

.prose-custom li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

.prose-custom li::marker {
  color: rgb(52, 211, 153);
}

.prose-custom strong {
  color: rgb(241, 245, 249);
  font-weight: 600;
}

.prose-custom a {
  color: rgb(52, 211, 153);
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose-custom a:hover {
  color: rgb(251, 191, 36);
  text-decoration-color: rgba(251, 191, 36, 0.5);
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose-custom thead {
  background: rgba(52, 211, 153, 0.1);
}

.prose-custom th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: rgb(52, 211, 153);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.prose-custom td {
  padding: 0.875rem 1rem;
  border-top: 1px solid rgba(71, 85, 105, 0.5);
  color: rgb(203, 213, 225);
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
}

.prose-custom tr:hover {
  background: rgba(52, 211, 153, 0.05);
}

.prose-custom blockquote {
  border-left: 0.25rem solid rgb(52, 211, 153);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgb(148, 163, 184);
  background: rgba(52, 211, 153, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.prose-custom code {
  background: rgba(52, 211, 153, 0.1);
  color: rgb(251, 191, 36);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose-custom pre {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-custom pre code {
  background: transparent;
  padding: 0;
  color: rgb(203, 213, 225);
}

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

  .prose-custom h2 {
    margin-top: 2rem;
  }

  .prose-custom h3 {
    margin-top: 1.5rem;
  }
}
