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

.marquee-container {
  position: relative;
}

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

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

/* Duplicate items for seamless loop */
.marquee-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
}

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

.prose h2 {
  color: #fbbf24;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

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

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

.prose p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #cbd5e1;
}

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

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

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

.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.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: #cbd5e1;
}

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

.prose blockquote {
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #94a3b8;
}

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

.prose thead {
  background-color: #0f172a;
}

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

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #334155;
  color: #cbd5e1;
}

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

.prose tr:hover {
  background-color: #1e293b;
}

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

.prose code {
  background-color: #1e293b;
  color: #fbbf24;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background-color: #1e293b;
  color: #e2e8f0;
  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;
}

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

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Parallax Base */
.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Focus States */
a:focus,
button:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background-color: #fbbf24;
  color: #0f172a;
}
