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

.marquee-content {
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e9ecef;
  max-width: 100%;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #f8f9fa;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #dc2626;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8f9fa;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #dee2e6;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

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

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

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

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

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

.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.7;
  color: #ced4da;
}

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

.prose blockquote {
  font-style: italic;
  color: #adb5bd;
  border-left: 4px solid #dc2626;
  padding-left: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  background-color: #1f2937;
  padding-top: 0.75em;
  padding-bottom: 0.75em;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background-color: #111827;
}

.prose thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #f8f9fa;
  border-bottom: 2px solid #dc2626;
  font-size: 0.9375rem;
}

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

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

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

.prose td {
  padding: 0.875rem 1rem;
  color: #ced4da;
  font-size: 0.9375rem;
}

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

.prose code {
  background-color: #1f2937;
  color: #dc2626;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #111827;
  color: #e9ecef;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  border: 1px solid #374151;
}

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

.prose hr {
  border: none;
  border-top: 2px solid #374151;
  margin-top: 3em;
  margin-bottom: 3em;
}

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

/* Ensure tables inside prose are scrollable */
.prose .table-responsive {
  overflow-x: auto;
}

/* Additional Typography Enhancements */
.prose em {
  color: #adb5bd;
  font-style: italic;
}

.prose kbd {
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 0.25rem;
  padding: 0.2em 0.4em;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: #e9ecef;
}

/* Parallax Effect (if needed) */
.parallax {
  transition: transform 0.5s ease-out;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, details:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
