/* Animations & Keyframes */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5), 0 0 40px rgba(220, 20, 60, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.8), 0 0 60px rgba(220, 20, 60, 0.5);
  }
}

@keyframes spark-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(20px, -20px) scale(1.2);
    opacity: 1;
  }
}

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

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

.glow-text {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(220, 20, 60, 0.3);
}

/* Spark Elements */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #FFD700, #FF6B35);
  border-radius: 50%;
  animation: spark-float 4s ease-in-out infinite;
  pointer-events: none;
}

.spark-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.spark-2 {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.spark-3 {
  top: 40%;
  left: 50%;
  animation-delay: 2s;
}

.spark-4 {
  top: 80%;
  left: 30%;
  animation-delay: 1.5s;
}

/* Marquee Animation */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

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

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: '';
  display: flex;
  gap: 1.5rem;
}

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

.table-responsive table {
  min-width: 600px;
}

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

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #FFD700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  background: linear-gradient(to right, #DC143C, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FF6B35;
  margin-top: 1.75em;
  margin-bottom: 0.875em;
  line-height: 1.4;
}

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

.prose p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #D1D5DB;
}

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

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

.prose a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
  color: #D1D5DB;
}

.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.75;
}

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

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

/* Tables */
.prose table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  border: 2px solid rgba(220, 20, 60, 0.3);
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 1rem;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

.prose thead {
  background: linear-gradient(to right, rgba(220, 20, 60, 0.8), rgba(220, 20, 60, 0.6));
}

.prose thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #FFFFFF;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(75, 85, 99, 0.5);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: rgba(75, 85, 99, 0.2);
}

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

.prose tbody td {
  padding: 1rem 1.5rem;
  color: #D1D5DB;
}

/* Blockquotes */
.prose blockquote {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding-left: 1.5em;
  border-left: 4px solid #FFD700;
  color: #9CA3AF;
  font-style: italic;
  background: rgba(255, 215, 0, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
}

.prose blockquote p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Code */
.prose code {
  background-color: rgba(220, 20, 60, 0.15);
  color: #FFD700;
  padding: 0.25em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #1F2937;
  color: #E5E7EB;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  border: 1px solid rgba(220, 20, 60, 0.3);
}

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

/* Horizontal Rule */
.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: 0;
  border-top: 2px solid rgba(220, 20, 60, 0.3);
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 2px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

/* Responsive Design */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
  }

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

  .prose p {
    font-size: 1rem;
  }

  .prose table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
  }

  .prose thead th,
  .prose tbody td {
    padding: 0.75rem 1rem;
  }
}

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

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