/* Vampire Glow Effect */
.vampire-glow {
  text-shadow: 0 0 20px rgba(220, 20, 60, 0.8),
               0 0 40px rgba(220, 20, 60, 0.5),
               0 0 60px rgba(220, 20, 60, 0.3);
}

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

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(192, 192, 192, 0.7);
  border-radius: 50%;
  animation: particle-float 15s infinite ease-in-out;
}

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

.particle-container::after {
  top: 60%;
  left: 70%;
  animation-delay: 3s;
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(100px, -200px) scale(1.5);
    opacity: 0.8;
  }
  90% {
    opacity: 1;
  }
}

/* Tilt Effect */
.tilt-on-hover {
  transition: transform 0.3s ease;
}

.tilt-on-hover:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

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

/* Prose Styling for Markdown Content */
.prose {
  max-width: 100%;
  color: #E8E8E8;
}

.prose h2 {
  color: #DC143C;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

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

.prose p {
  color: #C0C0C0;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

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

.prose a {
  color: #DC143C;
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

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

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

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

.prose li {
  color: #C0C0C0;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  background-color: #1a0f1f;
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
  overflow-x: auto;
}

.prose thead {
  background-color: #2d1b3d;
}

.prose thead th {
  color: #DC143C;
  font-weight: 700;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid rgba(220, 20, 60, 0.5);
  font-size: 1rem;
}

.prose tbody tr {
  border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

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

.prose tbody td {
  color: #C0C0C0;
  padding: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose tbody tr:hover {
  background-color: rgba(220, 20, 60, 0.05);
}

.prose blockquote {
  border-left: 4px solid #DC143C;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #E8E8E8;
  background-color: rgba(45, 27, 61, 0.3);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  background-color: #2d1b3d;
  color: #FF6B7A;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #1a0f1f;
  color: #C0C0C0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(220, 20, 60, 0.3);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 2px solid rgba(220, 20, 60, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(220, 20, 60, 0.3);
  margin: 3rem 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 thead th,
  .prose tbody td {
    padding: 0.75rem;
  }
}

/* Ensure tables scroll on mobile */
@media (max-width: 640px) {
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
