/* Animations */
@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(50px, 50px) scale(1.05);
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(0.5deg);
  }
  75% {
    transform: rotate(-0.5deg);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

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

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Smooth scrolling */
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: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #e2e8f0;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.prose h4 {
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

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

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

.prose a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

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

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

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

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

.prose li {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.prose li::marker {
  color: #60a5fa;
  font-weight: 600;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #3b82f6;
  padding-left: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #94a3b8;
  background: rgba(59, 130, 246, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose thead {
  background: #1e293b;
  border-bottom: 2px solid #3b82f6;
}

.prose thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
}

.prose tbody tr {
  border-bottom: 1px solid #334155;
  transition: background-color 0.2s ease;
}

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

.prose tbody td {
  padding: 1rem 1.5rem;
  color: #cbd5e1;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.prose code {
  background: #1e293b;
  color: #60a5fa;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #334155;
}

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

/* Ensure responsive tables */
.prose .table-responsive {
  overflow-x: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Mobile typography adjustments */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.75rem;
  }

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

  .prose p,
  .prose li {
    font-size: 1rem;
  }

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

  .prose thead th,
  .prose tbody td {
    padding: 0.75rem 1rem;
  }
}

/* Additional utilities */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}
