/* Particle Animation */
@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(10px, -10px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-5px, -20px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(-10px, -10px) scale(1.05);
    opacity: 0.7;
  }
}

.particle-container {
  pointer-events: none;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #E0115F;
  border-radius: 50%;
  box-shadow: 
    0 0 10px #E0115F,
    20px 30px 0 #E0115F,
    40px 10px 0 #C0C0C0,
    60px 50px 0 #E0115F,
    80px 20px 0 #C0C0C0,
    100px 60px 0 #E0115F,
    120px 15px 0 #C0C0C0,
    140px 45px 0 #E0115F,
    160px 25px 0 #C0C0C0,
    180px 55px 0 #E0115F;
  animation: particle-float 15s infinite ease-in-out;
}

.particle-container::after {
  animation-delay: 7.5s;
  left: 50%;
}

/* Tilt Animation */
@keyframes tilt {
  0%, 100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.tilt-element {
  animation: tilt 6s infinite ease-in-out;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #C0C0C0;
  line-height: 1.7;
}

.prose h2 {
  color: #E0115F;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 2px solid rgba(224, 17, 95, 0.3);
  padding-bottom: 0.5em;
}

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

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

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: rgba(192, 192, 192, 0.9);
}

.prose a {
  color: #E0115F;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #B22222;
  text-decoration: underline;
}

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: rgba(192, 192, 192, 0.9);
}

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.95em;
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background-color: rgba(92, 0, 0, 0.6);
}

.prose thead th {
  color: #C0C0C0;
  font-weight: 600;
  text-align: left;
  padding: 1em;
  border-bottom: 2px solid rgba(224, 17, 95, 0.4);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

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

.prose tbody tr:hover {
  background-color: rgba(92, 0, 0, 0.2);
}

.prose td {
  padding: 0.875em 1em;
  color: rgba(192, 192, 192, 0.9);
}

.prose blockquote {
  border-left: 4px solid #E0115F;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: rgba(192, 192, 192, 0.85);
  background-color: rgba(26, 26, 26, 0.5);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 10px 30px rgba(224, 17, 95, 0.2);
  border: 2px solid rgba(224, 17, 95, 0.3);
}

.prose code {
  color: #E0115F;
  background-color: rgba(26, 26, 26, 0.6);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: #C0C0C0;
}

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

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* Ensure proper spacing on small devices */
@media (max-width: 768px) {
  .prose {
    font-size: 0.95rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2em;
  }
  
  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.75em;
  }
  
  .prose table {
    font-size: 0.85em;
  }
  
  .prose td,
  .prose th {
    padding: 0.75em;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #E0115F;
  outline-offset: 2px;
}
