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

@keyframes neon-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 20px currentColor);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 30px currentColor);
    opacity: 0.9;
  }
}

@keyframes confetti-burst {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(720deg) scale(0);
    opacity: 0;
  }
}

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

@keyframes parallax-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slot-spin {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

@keyframes streak-flash {
  0%, 100% {
    opacity: 0;
    transform: translateX(-100%);
  }
  50% {
    opacity: 1;
    transform: translateX(100%);
  }
}

/* ===== UTILITY CLASSES ===== */

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

.parallax-item {
  animation: parallax-float 4s ease-in-out infinite;
}

.marquee-container {
  overflow: hidden;
  position: relative;
}

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

.streak-effect {
  position: relative;
  overflow: hidden;
}

.streak-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: streak-flash 3s ease-in-out infinite;
}

/* ===== PROSE STYLING FOR READABILITY ===== */

/* Enhanced prose styling with better typography, responsive units, and readability */

.prose {
  color: #e5e7eb;
  max-width: 100%;
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.prose h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  color: #ff0090;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  color: #ccff00;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

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

.prose p:first-of-type {
  font-size: 1.125em;
  line-height: 1.65;
}

.prose ul, .prose ol {
  margin-bottom: 1.75em;
  padding-left: 2em;
  line-height: 1.75;
}

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

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

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

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

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

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

.prose a {
  color: #ccff00;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #ff0090;
  text-decoration-thickness: 2px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 0 20px rgba(255, 0, 144, 0.3);
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 0.9375em;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose th {
  background: rgba(255, 0, 144, 0.25);
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  color: #ff0090;
  border: 1px solid rgba(255, 0, 144, 0.4);
}

.prose td {
  padding: 0.875em 1em;
  border: 1px solid rgba(204, 255, 0, 0.15);
  color: #d1d5db;
}

.prose tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.3);
}

.prose tr:hover {
  background: rgba(204, 255, 0, 0.05);
}

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

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

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

.prose code {
  background: rgba(255, 0, 144, 0.15);
  color: #ff0090;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(255, 0, 144, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #ccff00;
}

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

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

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff0090, #ccff00);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ccff00, #ff0090);
}

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

html {
  scroll-behavior: smooth;
}

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

.neon-border-pink {
  border: 2px solid #ff0090;
  box-shadow: 0 0 10px #ff0090, inset 0 0 10px rgba(255, 0, 144, 0.2);
}

.neon-border-lime {
  border: 2px solid #ccff00;
  box-shadow: 0 0 10px #ccff00, inset 0 0 10px rgba(204, 255, 0, 0.2);
}

/* ===== CONFETTI PARTICLES ===== */

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  animation: confetti-burst 2s ease-out infinite;
}

/* ===== BURGER MENU ===== */

.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
