/* Custom Animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow-gold {
  animation: glow 3s ease-in-out infinite;
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Mobile menu burger animation */
#burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

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

#burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

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

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

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

.prose h3 {
  color: #f4d03f;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
}

.prose h4 {
  color: #d4af37;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.7;
  color: #d1d5db;
}

.prose a {
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: #d4af37;
}

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

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.7;
  color: #d1d5db;
}

.prose li > p {
  margin-bottom: 0.5em;
}

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

.prose blockquote {
  border-left: 4px solid #d4af37;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(212, 175, 55, 0.05);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  overflow-x: auto;
  display: block;
  background: #1a2a45;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.prose thead {
  background: rgba(212, 175, 55, 0.1);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #d4af37;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: #d1d5db;
}

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

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

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

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

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

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

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

/* Responsive table wrapper */
@media (max-width: 768px) {
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
  }
}

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

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