/* Particle Animation */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: rgba(212, 169, 68, 0.6);
  border-radius: 50%;
  animation: particle-float 15s infinite ease-in-out;
}

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

.particles-container::after {
  top: 60%;
  left: 80%;
  animation-delay: 5s;
}

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

/* Parallax Effect */
.parallax-container {
  transform: translateZ(0);
  transition: transform 0.3s ease-out;
}

.parallax-container:hover {
  transform: translateY(-0.5rem) translateZ(0);
}

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

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

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

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

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-size: 1rem;
}

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

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

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

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

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

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

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

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

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  background-color: #1e293b;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background-color: #334155;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #fbbf24;
  border-bottom: 2px solid rgba(212, 169, 68, 0.2);
}

.prose td {
  padding: 0.875rem 1rem;
  color: #cbd5e1;
  border-bottom: 1px solid #334155;
}

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

.prose tr:hover {
  background-color: #334155;
}

.prose blockquote {
  border-left: 0.25rem solid #fbbf24;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #94a3b8;
  background-color: #1e293b;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.25rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.prose code {
  background-color: #1e293b;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #fcd34d;
}

.prose pre {
  background-color: #1e293b;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

/* Ensure tables never overflow */
.table-responsive table {
  min-width: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .prose {
    font-size: 0.9375rem;
  }
}

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

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