/* Animation: Tilt */
@keyframes tilt {
  0%, 100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
  display: inline-block;
}

/* Animation: Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
}

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

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

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

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: '';
  position: absolute;
  left: 100%;
  display: flex;
}

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

/* Burger menu animation */
#burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

#burger.open span:nth-child(2) {
  opacity: 0;
}

#burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Prose styling for markdown content */
.prose {
  color: #374151;
  max-width: 100%;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: #111827;
  position: relative;
  padding-bottom: 0.75rem;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(to right, #f59e0b, #fbbf24);
  border-radius: 0.125rem;
}

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

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

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

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

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

.prose li {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
  font-size: 1.0625rem;
}

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

.prose strong {
  font-weight: 700;
  color: #111827;
}

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

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

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

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #4b5563;
  background: linear-gradient(to right, #fffbeb, transparent);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.prose thead {
  background: linear-gradient(to right, #f59e0b, #fbbf24);
}

.prose thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 0.125rem solid #d97706;
}

.prose tbody tr {
  border-bottom: 0.0625rem solid #e5e7eb;
  transition: background-color 0.2s;
}

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

.prose tbody td {
  padding: 0.875rem 1rem;
  color: #374151;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.625rem 1.875rem -0.3125rem rgba(0, 0, 0, 0.1);
}

.prose hr {
  margin-top: 3rem;
  margin-bottom: 3rem;
  border: 0;
  border-top: 0.125rem solid #e5e7eb;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  color: #0ea5e9;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

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

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
  }

  .prose p, .prose li {
    font-size: 1rem;
    line-height: 1.7;
  }

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

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

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

.prose * {
  background-color: transparent;
}
