/* ========================================
   NEON GLOW EFFECTS & ANIMATIONS
   ======================================== */

@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 0.625rem #00d4ff, 0 0 1.25rem #00d4ff, 0 0 1.875rem #00d4ff, 0 0 2.5rem #00d4ff;
  }
  50% {
    text-shadow: 0 0 1.25rem #00d4ff, 0 0 2.5rem #00d4ff, 0 0 3.75rem #00d4ff, 0 0 5rem #00d4ff;
  }
}

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

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-2.5rem) translateX(1.25rem);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-5rem) translateX(-1.25rem);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-2.5rem) translateX(-1.875rem);
    opacity: 0.7;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.3), 0 0 2.5rem rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(0, 212, 255, 0.5), 0 0 5rem rgba(0, 212, 255, 0.3);
  }
}

@keyframes hover-lift-animation {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-0.625rem);
  }
}

/* ========================================
   NEON TEXT STYLES
   ======================================== */

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

.neon-text-multi {
  background: linear-gradient(45deg, #00d4ff, #ff0080, #9d00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neon-pulse 3s ease-in-out infinite;
}

/* ========================================
   CARD & CONTAINER STYLES
   ======================================== */

.neon-card {
  background: rgba(21, 21, 31, 0.8);
  backdrop-filter: blur(0.625rem);
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.neon-card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 1.875rem rgba(0, 212, 255, 0.3);
}

.neon-glow-border {
  border-bottom: 0.0625rem solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0.25rem 1.875rem rgba(0, 212, 255, 0.1);
}

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

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 212, 255, 0.3);
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-neon-primary {
  background: linear-gradient(135deg, #00d4ff, #ff0080);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-neon-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1.875rem rgba(0, 212, 255, 0.5), 0 0 3.75rem rgba(255, 0, 128, 0.3);
}

.btn-neon-secondary {
  background: transparent;
  color: #00d4ff;
  border: 0.125rem solid #00d4ff;
  transition: all 0.3s ease;
}

.btn-neon-secondary:hover {
  background: #00d4ff;
  color: #0a0a0f;
  box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.5);
}

.btn-neon-small {
  background: linear-gradient(135deg, #9d00ff, #ff0080);
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-neon-small:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1.25rem rgba(157, 0, 255, 0.5);
}

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

.neon-glow-blue {
  box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.6), 0 0 2.5rem rgba(0, 212, 255, 0.4);
}

.neon-glow-pink {
  box-shadow: 0 0 1.25rem rgba(255, 0, 128, 0.6), 0 0 2.5rem rgba(255, 0, 128, 0.4);
}

.neon-glow-purple {
  box-shadow: 0 0 1.25rem rgba(157, 0, 255, 0.6), 0 0 2.5rem rgba(157, 0, 255, 0.4);
}

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

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

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

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

/* ========================================
   PARTICLE FIELD EFFECT
   ======================================== */

.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.particle-field::before,
.particle-field::after {
  content: '';
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: #00d4ff;
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

.particle-field::before {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.particle-field::after {
  top: 60%;
  left: 70%;
  animation-delay: 4s;
  background: #ff0080;
}

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

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

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #00d4ff;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.0125em;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff0080;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose-custom h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #9d00ff;
  margin-top: 1.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.4;
}

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

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

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

.prose-custom a {
  color: #00d4ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

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

/* Lists */
.prose-custom ul,
.prose-custom ol {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.75;
}

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

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

.prose-custom li {
  margin-bottom: 0.75rem;
  color: #d1d5db;
  font-size: 1.0625rem;
}

.prose-custom li::marker {
  color: #00d4ff;
}

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

/* Tables */
.prose-custom table {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: rgba(21, 21, 31, 0.6);
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-custom thead {
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 0.125rem solid rgba(0, 212, 255, 0.5);
}

.prose-custom th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #00d4ff;
  border-bottom: 0.0625rem solid rgba(0, 212, 255, 0.3);
}

.prose-custom td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

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

.prose-custom tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

/* Blockquotes */
.prose-custom blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 0.25rem solid #ff0080;
  background: rgba(255, 0, 128, 0.05);
  font-style: italic;
  color: #e5e7eb;
  border-radius: 0.25rem;
}

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

/* Code */
.prose-custom code {
  background: rgba(0, 212, 255, 0.1);
  color: #00ffff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
}

.prose-custom pre {
  background: rgba(10, 10, 15, 0.9);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
}

.prose-custom pre code {
  background: none;
  padding: 0;
  color: #00ffff;
}

/* Images */
.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem auto;
  display: block;
  border: 0.125rem solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0.625rem 1.875rem rgba(0, 212, 255, 0.2);
}

/* HR */
.prose-custom hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  margin: 3rem 0;
}

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

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

.table-responsive::-webkit-scrollbar {
  height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(21, 21, 31, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .prose-custom h2 {
    font-size: 1.5rem;
  }
  
  .prose-custom h3 {
    font-size: 1.25rem;
  }
  
  .prose-custom p,
  .prose-custom li {
    font-size: 1rem;
  }
  
  .prose-custom table {
    font-size: 0.875rem;
  }
  
  .prose-custom th,
  .prose-custom td {
    padding: 0.625rem;
  }
}
