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

@keyframes tilt {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

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

.animate-tilt-delayed {
  animation: tilt 2s ease-in-out infinite;
  animation-delay: 0.3s;
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

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

/* Prose Styling for Markdown Content */
.prose {
  color: #374151;
  line-height: 1.6;
}

.prose h2 {
  color: #9333EA;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

.prose h4 {
  color: #06B6D4;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

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

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

.prose a {
  color: #9333EA;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

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

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

.prose li {
  margin-bottom: 0.625rem;
  line-height: 1.7;
  color: #4B5563;
}

.prose li::marker {
  color: #9333EA;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: linear-gradient(to right, #9333EA, #EC4899);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #FFFFFF;
  border-bottom: 2px solid #9333EA;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #E5E7EB;
  color: #4B5563;
}

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

.prose blockquote {
  border-left: 4px solid #FBBF24;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6B7280;
  background-color: #FFFBEB;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0.375rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.prose code {
  background-color: #F3F4F6;
  color: #9333EA;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background-color: #1F2937;
  color: #F9FAFB;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
}

/* Ensure readability - no dark text on dark bg or light on light */
.prose {
  background-color: transparent;
}

/* Mobile table scroll indicator */
@media (max-width: 768px) {
  .table-responsive::after {
    content: '← Swipe om meer te zien →';
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #9333EA;
    margin-top: 0.5rem;
    font-weight: 500;
  }
}
