/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(180, 75, 243, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(180, 75, 243, 0.6);
    transform: scale(1.02);
  }
}

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

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

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
}

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

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

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

.table-responsive table {
  min-width: 100%;
  width: max-content;
}

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

.prose h2 {
  color: #ffd700;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 2px solid rgba(180, 75, 243, 0.3);
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #f4d03f;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.prose h4 {
  color: #b24bf3;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.7em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #d1d5db;
  line-height: 1.75;
}

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

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

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

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #d1d5db;
  line-height: 1.75;
}

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

.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%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.prose thead {
  border-bottom: 2px solid rgba(180, 75, 243, 0.5);
}

.prose thead th {
  color: #ffd700;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75em 1em;
  text-align: left;
  background: rgba(26, 10, 46, 0.5);
}

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

.prose tbody tr:hover {
  background: rgba(74, 29, 150, 0.2);
}

.prose tbody td {
  padding: 0.75em 1em;
  vertical-align: top;
  color: #d1d5db;
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid #b24bf3;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(74, 29, 150, 0.1);
  padding: 1.5em;
  border-radius: 0.5rem;
}

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

/* Code */
.prose code {
  color: #ffd700;
  background: rgba(26, 10, 46, 0.5);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background: rgba(26, 10, 46, 0.8);
  color: #e5e7eb;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(180, 75, 243, 0.3);
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 10px 40px rgba(180, 75, 243, 0.2);
  border: 2px solid rgba(180, 75, 243, 0.3);
}

/* Horizontal Rule */
.prose hr {
  border: 0;
  border-top: 2px solid rgba(180, 75, 243, 0.3);
  margin: 3em 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.5em 0.75em;
  }
}

/* Ensure readability - never dark text on dark background */
.prose * {
  color: inherit;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-weight: 700;
  line-height: 1.3;
}

/* First paragraph special styling */
.prose > p:first-of-type {
  font-size: 1.125em;
  line-height: 1.6;
  color: #e5e7eb;
}

/* Smooth transitions */
.prose a,
.prose tbody tr {
  transition: all 0.2s ease;
}
