/* Crown of Echoes Theme - Custom Styles */

/* Crown glow effect */
.crown-glow {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.3);
}

/* Parallax elements */
.parallax {
  will-change: transform;
}

/* Tilt card transitions */
.tilt-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* Keyframe animations */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
  }
}

/* Animated elements */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

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

/* Moonlit sheen effect */
.moonlit-sheen {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.1) 0%,
    rgba(203, 213, 225, 0.2) 50%,
    rgba(148, 163, 184, 0.1) 100%
  );
}

/* Silver coronet borders */
.silver-border {
  border: 2px solid;
  border-image: linear-gradient(45deg, rgba(203, 213, 225, 0.8), rgba(245, 158, 11, 0.6), rgba(203, 213, 225, 0.8)) 1;
}

/* Enhanced prose styling for readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.9);
}

.prose h2 {
  color: rgb(245, 158, 11);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.prose h3 {
  color: rgb(251, 191, 36);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h4 {
  color: rgb(252, 211, 77);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  color: rgba(203, 213, 225, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

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

.prose li {
  margin: 0.5em 0;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.6;
}

.prose ul li::marker {
  color: rgb(245, 158, 11);
}

.prose ol li::marker {
  color: rgb(245, 158, 11);
  font-weight: 600;
}

.prose table {
  margin: 1.5em 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table tbody {
  display: table;
  width: 100%;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: rgb(245, 158, 11);
  font-weight: 600;
  background-color: rgba(30, 41, 59, 0.5);
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.prose td {
  color: rgba(203, 213, 225, 0.9);
}

.prose blockquote {
  border-left: 4px solid rgb(245, 158, 11);
  padding-left: 1rem;
  margin: 1.5em 0;
  font-style: italic;
  color: rgba(203, 213, 225, 0.8);
  background-color: rgba(30, 41, 59, 0.3);
  padding: 1rem;
  border-radius: 0.375rem;
}

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

.prose strong {
  color: rgb(245, 158, 11);
  font-weight: 600;
}

.prose em {
  color: rgb(251, 191, 36);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .crown-glow {
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4), 0 0 30px rgba(245, 158, 11, 0.2);
  }

  .tilt-card:hover {
    transform: none; /* Disable tilt on mobile */
  }

  .prose {
    font-size: 0.9rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2em;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5em;
  }

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

  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
  }
}

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

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid rgb(245, 158, 11);
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(30, 41, 59);
}

::-webkit-scrollbar-thumb {
  background: rgb(245, 158, 11);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(251, 191, 36);
}
