/* ===================================
   STELLA RADIANT SOFT THEME
   Custom CSS: Keyframes, Animations & Prose
   =================================== */

/* === KEYFRAME ANIMATIONS === */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 120, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 120, 0.7);
  }
}

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

/* === UTILITY CLASSES === */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.parallax {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

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

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

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

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

/* === PROSE STYLING FOR MARKDOWN CONTENT === */
.prose {
  color: #e8e4f0;
  max-width: 100%;
  line-height: 1.65;
  font-size: 1rem;
}

.prose h2 {
  color: #ffd778;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose h3 {
  color: #ffebb8;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #f5e6d3;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: #ffb84d;
  text-decoration: underline;
  text-decoration-color: rgba(255, 184, 77, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #ffd778;
  text-decoration-color: rgba(255, 215, 120, 0.6);
}

.prose strong {
  color: #ffebb8;
  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 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
  color: #d4cfe0;
}

.prose ul > li::marker {
  color: #ffb84d;
}

.prose ol > li::marker {
  color: #ffb84d;
  font-weight: 600;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9em;
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: linear-gradient(135deg, rgba(138, 82, 180, 0.3), rgba(88, 45, 140, 0.3));
  border-bottom: 2px solid rgba(255, 184, 77, 0.4);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #ffd778;
  border: 1px solid rgba(138, 82, 180, 0.3);
}

.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(138, 82, 180, 0.2);
  color: #d4cfe0;
  background: rgba(45, 25, 70, 0.3);
}

.prose tbody tr:hover td {
  background: rgba(88, 45, 140, 0.3);
}

.prose blockquote {
  border-left: 4px solid #ffb84d;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #e8e4f0;
  background: rgba(138, 82, 180, 0.15);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

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

.prose code {
  background: rgba(88, 45, 140, 0.4);
  color: #ffebb8;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: rgba(45, 25, 70, 0.6);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(138, 82, 180, 0.3);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #e8e4f0;
}

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

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

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

  .prose table {
    font-size: 0.85em;
  }

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

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  background: linear-gradient(180deg, rgba(33, 15, 60, 0.98), rgba(45, 25, 70, 0.98));
  backdrop-filter: blur(10px);
}

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

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

::-webkit-scrollbar-track {
  background: rgba(33, 15, 60, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 82, 180, 0.6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 82, 180, 0.8);
}
