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

@keyframes float-particles {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.8), 0 0 60px rgba(0, 212, 255, 0.5);
  }
}

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

/* Particle Container */
.particles-container {
  pointer-events: none;
}

.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.3) 0%, transparent 70%);
  animation: float-particles 6s ease-in-out infinite;
}

.particles-container::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.particles-container::after {
  bottom: 20%;
  right: 15%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  animation-delay: 3s;
}

/* Pulse Glow Animation */
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Marquee Wrapper */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  animation: marquee 40s linear infinite;
  will-change: transform;
}

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

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

/* ===========================
   PROSE STYLING
   =========================== */

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

/* Headings */
.prose h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #ff0080;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00d4ff;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

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

/* Paragraphs */
.prose p {
  margin-bottom: 1.5em;
  line-height: 1.7;
  color: #d1d5db;
  font-size: 1.0625rem;
}

/* Links */
.prose a {
  color: #00d4ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
  font-weight: 600;
}

.prose a:hover {
  color: #ff0080;
  text-decoration-color: rgba(255, 0, 128, 0.5);
}

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

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

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

.prose li {
  margin-bottom: 0.75em;
  line-height: 1.6;
  padding-left: 0.5em;
}

.prose li::marker {
  color: #ff0080;
  font-weight: 700;
}

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

/* Tables */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  background-color: #1a1f3a;
  border-radius: 0.5rem;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose thead {
  background: linear-gradient(to right, #ff0080, #00d4ff);
}

.prose th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 900;
  font-size: 1rem;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 0, 128, 0.3);
}

.prose td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 0, 128, 0.1);
  color: #d1d5db;
  font-size: 0.9375rem;
}

.prose tbody tr:hover {
  background-color: #0a0e27;
  transition: background-color 0.2s ease;
}

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #ff0080;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #d1d5db;
  background-color: rgba(255, 0, 128, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

/* Strong & Emphasis */
.prose strong {
  font-weight: 800;
  color: #ffffff;
}

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

/* Code */
.prose code {
  background-color: #1a1f3a;
  color: #00d4ff;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.prose pre {
  background-color: #0a0e27;
  color: #e5e7eb;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(255, 0, 128, 0.2);
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em 0;
  border: 2px solid rgba(255, 0, 128, 0.3);
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.75rem;
  }
  
  .prose h3 {
    font-size: 1.375rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose p, .prose li {
    font-size: 1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.75rem 1rem;
  }
}

/* High Contrast Focus States */
.prose a:focus,
.prose button:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}
