@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-shimmer {
  background-size: 2000px 100%;
  animation: shimmer 3s linear infinite;
}

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

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

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

.parallax {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.prose-custom {
  font-size: 1rem;
  line-height: 1.75;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fbbf24;
}

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

.prose-custom ul,
.prose-custom ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: #fbbf24;
  text-decoration: none;
  transition: color 0.2s;
}

.prose-custom a:hover {
  color: #fcd34d;
}

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

.prose-custom code {
  background-color: rgba(30, 58, 138, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose-custom blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.25rem;
  font-style: italic;
  color: rgba(224, 231, 255, 0.8);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary ~ * {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .prose-custom h2 {
    font-size: 1.5rem;
  }

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .parallax {
    transform: none !important;
  }

  .marquee-content {
    animation: none;
  }
}

/* Adding comprehensive prose styling for markdown content */
.prose {
  max-width: 100%;
  color: #e0e7ff;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #cbd5e1;
}

.prose h2 {
  font-size: 2em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.prose h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.875em;
  line-height: 1.4;
  color: #60a5fa;
}

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

.prose h5 {
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.625em;
  color: #bfdbfe;
}

.prose h6 {
  font-size: 1em;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #dbeafe;
}

.prose a {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

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

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

.prose em {
  font-style: italic;
  color: #e2e8f0;
}

.prose ul {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

.prose ul li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
  color: #cbd5e1;
}

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

.prose ol {
  list-style-type: decimal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

.prose ol li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
  color: #cbd5e1;
}

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

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

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  color: #94a3b8;
  background: rgba(30, 58, 138, 0.2);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-top: 0;
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9375em;
  line-height: 1.6;
  border-collapse: collapse;
}

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

.prose thead th {
  color: #fbbf24;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75em 1em 0.75em 0;
  background: rgba(30, 58, 138, 0.3);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: rgba(30, 58, 138, 0.2);
}

.prose tbody td {
  vertical-align: baseline;
  padding: 0.75em 1em 0.75em 0;
  color: #cbd5e1;
}

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

.prose code {
  color: #fcd34d;
  background-color: rgba(30, 58, 138, 0.4);
  padding: 0.2em 0.4em;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-weight: 500;
}

.prose pre {
  background-color: rgba(15, 23, 42, 0.8);
  overflow-x: auto;
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875em;
  line-height: 1.7;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(96, 165, 250, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive typography adjustments */
@media (max-width: 1024px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.75em;
  }

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

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

  .prose h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
  }

  .prose h3 {
    font-size: 1.25em;
    margin-top: 1.25em;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }

  .prose blockquote {
    padding-left: 1em;
    padding-right: 1em;
  }

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

  .prose thead th,
  .prose tbody td {
    padding: 0.625em 0.75em 0.625em 0;
  }
}

/* Ensure table wrapper has proper overflow handling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.table-responsive table {
  min-width: 37.5rem;
  margin: 0;
}
