/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 4s ease infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.shadow-glow {
  box-shadow: 0 0 1.5rem rgba(255, 107, 107, 0.5);
}

.shadow-glow-intense {
  box-shadow: 0 0 2.5rem rgba(255, 107, 107, 0.7), 0 0 4rem rgba(255, 215, 0, 0.4);
}

.hover\:shadow-glow:hover {
  box-shadow: 0 0 1.5rem rgba(255, 107, 107, 0.5);
}

.hover\:shadow-glow-intense:hover {
  box-shadow: 0 0 2.5rem rgba(255, 107, 107, 0.7), 0 0 4rem rgba(255, 215, 0, 0.4);
}

/* ============================================
   TABLE RESPONSIVE WRAPPER
   ============================================ */

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

/* ============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================ */

.prose {
  max-width: 100%;
  color: #e5e7eb;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #FFD700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

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

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

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #d1d5db;
  line-height: 1.8;
}

.prose a {
  color: #FF6B6B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

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

.prose strong {
  color: #f9fafb;
  font-weight: 700;
}

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

.prose ul {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

.prose ol {
  list-style-type: decimal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

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

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

.prose ol > li::marker {
  color: #FFD700;
  font-weight: 700;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #FF6B6B;
  padding-left: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  color: #9ca3af;
  background: rgba(255, 107, 107, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0.5rem;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(to right, #FF6B6B, #E85555);
}

.prose thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.prose tbody tr {
  border-bottom: 1px solid #2D2D5F;
  background: #1A1A40;
}

.prose tbody tr:nth-child(even) {
  background: #0F0F28;
}

.prose tbody tr:hover {
  background: rgba(255, 107, 107, 0.1);
}

.prose tbody td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
  font-size: 0.925rem;
  white-space: nowrap;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 0 1.5rem rgba(255, 107, 107, 0.3);
}

.prose code {
  background: #2D2D5F;
  color: #FFD700;
  padding: 0.2em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: #0F0F28;
  color: #e5e7eb;
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  border: 1px solid #2D2D5F;
}

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

.prose hr {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #FF6B6B, transparent);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose {
    font-size: 0.95rem;
  }
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   UTILITY OVERRIDES
   ============================================ */

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}
