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

@keyframes parallax {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20%);
  }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-parallax {
  animation: parallax 20s ease-in-out infinite alternate;
}

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

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

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

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

.prose h3 {
  color: #f59e0b;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
  text-wrap: balance;
}

.prose h4 {
  color: #fbbf24;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

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

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

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

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  color: #d1d5db;
}

.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.75;
}

.prose li::marker {
  color: #fbbf24;
}

.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

.prose thead {
  background-color: #047857;
  border-bottom: 2px solid #fbbf24;
}

.prose thead th {
  color: #fbbf24;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  vertical-align: bottom;
}

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

.prose tbody tr:hover {
  background-color: #064e3b;
}

.prose tbody td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  color: #d1d5db;
}

.prose blockquote {
  font-style: italic;
  color: #9ca3af;
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  quotes: "\201C""\201D""\2018""\2019";
}

.prose blockquote p:first-of-type::before {
  content: open-quote;
}

.prose blockquote p:last-of-type::after {
  content: close-quote;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.prose code {
  color: #fbbf24;
  font-size: 0.875em;
  font-weight: 600;
  background-color: #022c22;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
}

.prose pre {
  background-color: #022c22;
  color: #d1d5db;
  overflow-x: auto;
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  line-height: 1.75;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  font-size: 0.875em;
  font-weight: 400;
  padding: 0;
}

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

/* Ensure responsive images */
.prose img {
  max-width: 100%;
  height: auto;
}

/* Responsive tables wrapper */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose p,
  .prose li {
    font-size: 1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.625rem 0.75rem;
  }
}

/* Custom scrollbar for tables */
.prose table::-webkit-scrollbar {
  height: 0.5rem;
}

.prose table::-webkit-scrollbar-track {
  background: #022c22;
  border-radius: 0.25rem;
}

.prose table::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 0.25rem;
}

.prose table::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}
