/* Custom Animations & Effects */

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(253, 185, 19, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(253, 185, 19, 0.8), 0 0 60px rgba(253, 185, 19, 0.4);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.floating-hero {
  animation: float 6s ease-in-out infinite;
}

.ancient-text-shadow {
  text-shadow: 0 0 20px rgba(253, 185, 19, 0.5), 0 0 40px rgba(253, 185, 19, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Hide Scrollbar */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

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

/* Custom Backgrounds */
body {
  background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 50%, #2c1810 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Card Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(253, 185, 19, 0.3);
}

/* Prose Styling for Readability */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.7;
}

.prose h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #fdb913;
}

.prose h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: #fdb913;
}

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

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

.prose a {
  color: #fdb913;
  text-decoration: underline;
  font-weight: 500;
}

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

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

.prose blockquote {
  border-left: 4px solid #fdb913;
  padding-left: 1em;
  font-style: italic;
  color: #f5deb3;
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: " ▼";
  font-size: 0.8em;
  margin-left: 0.5em;
  transition: transform 0.3s ease;
  display: inline-block;
}

details[open] summary::after {
  transform: rotate(180deg);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #fdb913 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading Spinner for Images */
img {
  transition: opacity 0.3s ease;
}

/* Table Styles */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .ancient-text-shadow {
    text-shadow: 0 0 10px rgba(253, 185, 19, 0.5), 1px 1px 2px rgba(0, 0, 0, 0.8);
  }
}

/* Accessibility */
*:focus-visible {
  outline: 2px solid #fdb913;
  outline-offset: 2px;
}

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