/* Keyframe Animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.3);
  }
}

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

@keyframes parallax-slow {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-50px);
  }
}

/* Utility Classes */
.glow-gold {
  animation: glow 3s ease-in-out infinite;
}

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

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

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

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.prose h2 {
  color: #d4af37;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #e0c04e;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.prose h4 {
  color: #f0d978;
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose p {
  color: #d0d0d0;
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.25em;
}

.prose a {
  color: #d4af37;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

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

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

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

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

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

.prose li {
  color: #d0d0d0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.6;
  padding-left: 0.375em;
}

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

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

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

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
  border-collapse: collapse;
  overflow-x: auto;
}

.prose thead {
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.prose thead th {
  color: #d4af37;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75em 1em;
}

.prose tbody tr {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.prose tbody td {
  color: #d0d0d0;
  vertical-align: top;
  padding: 0.75em 1em;
}

.prose blockquote {
  font-style: italic;
  color: #c0c0c0;
  border-left: 0.25rem solid #d4af37;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
}

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

.prose code {
  color: #f0d978;
  background-color: rgba(212, 175, 55, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background-color: #1a2332;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #e8e8e8;
  font-size: 0.875rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Tables */
@media (max-width: 768px) {
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.5em 0.75em;
  }
}

/* Ensure proper contrast */
.prose *::selection {
  background-color: rgba(212, 175, 55, 0.3);
  color: #ffffff;
}
