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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.marquee-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(220, 20, 60, 0.1) 0px,
    rgba(220, 20, 60, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: marquee 20s linear infinite;
  width: 200%;
  height: 100%;
}

.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

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

.table-responsive table {
  min-width: 100%;
}

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

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

.prose h2 {
  color: #DC143C;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  border-bottom: 2px solid rgba(220, 20, 60, 0.3);
  padding-bottom: 0.75rem;
}

.prose h3 {
  color: #C0C0C0;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose h4 {
  color: #F0F0F8;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #C0C0C0;
  line-height: 1.7;
}

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

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

.prose a {
  color: #DC143C;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #C0C0C0;
}

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

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

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

.prose li {
  margin-bottom: 0.625rem;
  color: #C0C0C0;
  line-height: 1.6;
}

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

.prose blockquote {
  border-left: 4px solid #DC143C;
  padding-left: 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #C0C0C0;
  background-color: rgba(45, 27, 61, 0.5);
  padding: 1.25rem 1.5rem;
  border-radius: 0.375rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background-color: #0B0B1A;
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 100%;
}

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

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #FFFFFF;
  border-bottom: 2px solid rgba(220, 20, 60, 0.5);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(220, 20, 60, 0.2);
  color: #F0F0F8;
}

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

.prose tr:hover {
  background-color: rgba(45, 27, 61, 0.3);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.prose code {
  background-color: rgba(45, 27, 61, 0.7);
  color: #DC143C;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background-color: #0B0B1A;
  color: #F0F0F8;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid rgba(220, 20, 60, 0.2);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(220, 20, 60, 0.3);
  margin: 2.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

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

  .prose h4 {
    font-size: 1.125rem;
  }

  .prose {
    font-size: 0.9375rem;
  }

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

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* Ensure proper spacing in lists */
.prose ul ul,
.prose ol ul,
.prose ul ol,
.prose ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* First paragraph special styling for inner pages */
.prose > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #F0F0F8;
}
