/* ===========================
   KEYFRAME ANIMATIONS
   =========================== */

@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 0.625rem #b86bff, 0 0 1.25rem #b86bff, 0 0 1.875rem #b86bff;
  }
  50% {
    text-shadow: 0 0 1.25rem #ff00ff, 0 0 1.875rem #ff00ff, 0 0 2.5rem #ff00ff;
  }
}

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

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

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

/* ===========================
   NEON EFFECTS
   =========================== */

.neon-text {
  text-shadow: 0 0 0.625rem #b86bff, 0 0 1.25rem #b86bff, 0 0 1.875rem #b86bff;
}

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

.shadow-neon {
  box-shadow: 0 0 1.25rem rgba(184, 107, 255, 0.5), 0 0 2.5rem rgba(184, 107, 255, 0.3);
}

/* ===========================
   ANIMATIONS
   =========================== */

.bonus-badge {
  animation: float 3s ease-in-out infinite;
}

.step-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.step-card:nth-child(1) {
  animation-delay: 0.1s;
}

.step-card:nth-child(2) {
  animation-delay: 0.2s;
}

.step-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* ===========================
   MARQUEE
   =========================== */

.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

/* Duplicate items for seamless loop */
.marquee-content::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
}

/* ===========================
   RESPONSIVE TABLES
   =========================== */

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

.table-responsive table {
  min-width: 37.5rem;
  width: 100%;
}

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

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

.prose h2 {
  color: #b86bff;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.prose h3 {
  color: #00f0ff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.prose p {
  color: #d1d5db;
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

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

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

.prose a {
  color: #00f0ff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #b86bff;
}

/* Lists */
.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.75rem;
}

.prose ul li,
.prose ol li {
  color: #d1d5db;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.prose ul li::marker {
  color: #b86bff;
}

.prose ol li::marker {
  color: #00f0ff;
  font-weight: 600;
}

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

/* Tables */
.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background-color: rgba(26, 26, 46, 0.5);
  border: 0.0625rem solid rgba(184, 107, 255, 0.3);
  border-radius: 0.75rem;
  overflow-x: auto;
}

.prose thead {
  background-color: rgba(184, 107, 255, 0.2);
}

.prose thead th {
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 0.125rem solid rgba(184, 107, 255, 0.4);
}

.prose tbody tr {
  border-bottom: 0.0625rem solid rgba(184, 107, 255, 0.2);
}

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

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

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #b86bff;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #9ca3af;
  background-color: rgba(184, 107, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose blockquote p {
  margin: 0;
}

/* Code */
.prose code {
  background-color: rgba(184, 107, 255, 0.2);
  color: #00f0ff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: rgba(10, 10, 15, 0.8);
  border: 0.0625rem solid rgba(184, 107, 255, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #e5e5e5;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 0.125rem solid rgba(184, 107, 255, 0.3);
}

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 0.125rem solid rgba(184, 107, 255, 0.3);
  margin: 3rem 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 48rem) {
  .prose h2 {
    font-size: 1.75rem;
  }
  
  .prose h3 {
    font-size: 1.375rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose p {
    font-size: 1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.75rem 1rem;
  }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
a:focus,
button:focus,
details:focus,
summary:focus {
  outline: 0.125rem solid #00f0ff;
  outline-offset: 0.125rem;
}

/* Ensure proper contrast */
.prose {
  background-color: transparent;
}

/* Table wrapper for scroll on small devices */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 0.75rem;
}
