/* Animations */
@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

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

@keyframes glow-text {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.5);
  }
}

/* Particle System */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  border-radius: 50%;
  animation: float-particle linear infinite;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* Utility Classes */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.shadow-glow {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
}

.tilt-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

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

/* Prose Styling */
.prose {
  color: #d1d5db;
  line-height: 1.7;
}

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

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

.prose p {
  margin-bottom: 1.5rem;
  color: #e5e7eb;
  font-size: 1rem;
}

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

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

.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

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

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

.prose li {
  margin-bottom: 0.75rem;
  color: #e5e7eb;
  line-height: 1.6;
}

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

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

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

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(26, 31, 58, 0.8);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.prose thead {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 255, 0.2));
}

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

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

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

.prose code {
  background: rgba(0, 212, 255, 0.1);
  color: #ff00ff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: rgba(26, 31, 58, 0.8);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

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

.prose hr {
  border: none;
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  margin: 3rem 0;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose {
    font-size: 0.95rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .prose h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25rem;
  }

  .prose blockquote {
    padding-left: 1rem;
    margin: 1.5rem 0;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(10, 14, 39, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00d4ff, #ff00ff);
  border-radius: 4px;
}
