/* Golden Glow Animation */
@keyframes golden-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.7), 0 0 60px rgba(251, 191, 36, 0.5);
  }
}

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

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

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

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  animation: marquee 20s linear infinite;
}

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

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

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

/* Enhanced prose styling for markdown content with improved typography and responsive design */
.prose {
  color: #78350f;
  line-height: 1.75;
  max-width: 100%;
  font-size: 1.0625rem;
}

.prose p {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.prose a {
  color: #b45309;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  word-wrap: break-word;
}

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
  max-width: 100%;
}

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

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

.prose li {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #78350f;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.25;
  max-width: 100%;
}

.prose h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
  border-bottom: 2px solid #fde68a;
  padding-bottom: 0.5em;
}

.prose h3 {
  font-size: 1.625rem;
  color: #92400e;
}

.prose h4 {
  font-size: 1.375rem;
  color: #92400e;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

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

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

.prose blockquote {
  border-left: 0.25rem solid #f59e0b;
  padding-left: 1.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-style: italic;
  color: #92400e;
  margin: 2em 0;
  background-color: #fef3c7;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

.prose code {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.25em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background-color: #fef3c7;
  color: #78350f;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375rem;
  overflow-x: auto;
}

.prose th {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 1em;
  text-align: left;
  font-weight: 600;
  border: none;
}

.prose td {
  padding: 1em;
  border-bottom: 1px solid #fde68a;
  background-color: #fffbeb;
}

.prose tr:nth-child(even) td {
  background-color: #fef3c7;
}

.prose tr:hover td {
  background-color: #fde68a;
  transition: background-color 0.2s ease;
}

.prose hr {
  border: none;
  border-top: 2px solid #fde68a;
  margin: 3em 0;
}

/* Responsive typography */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.75rem;
  }

  .prose h3 {
    font-size: 1.5rem;
  }

  .prose h4 {
    font-size: 1.25rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.5em;
  }

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

  .prose th,
  .prose td {
    padding: 0.75em;
  }
}

/* Custom Scrollbar for Tables */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #fef3c7;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Prevent horizontal overflow */
body {
  overflow-x: clip;
}

/* Details/Summary Styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid #fde68a;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
summary:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }

  body {
    background: white;
  }
}
