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

@keyframes particle {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) scale(1.05);
    opacity: 0.9;
  }
}

.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

.animate-particle {
  animation: particle 2s ease-in-out infinite;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e5e7eb;
  max-width: 100%;
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose h2 {
  color: #d4af37;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  border-bottom: 2px solid #059669;
  padding-bottom: 0.75rem;
}

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

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

.prose p {
  color: #d1d5db;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

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

.prose a {
  color: #34d399;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #10b981;
}

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

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

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

.prose li {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
  line-height: 1.75;
}

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

.prose blockquote {
  border-left: 4px solid #d4af37;
  padding-left: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: #9ca3af;
  background: rgba(10, 22, 40, 0.5);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  background: #0f1f3d;
  border-radius: 0.5rem;
}

.prose thead {
  background: #0a1628;
}

.prose th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #d4af37;
  border-bottom: 2px solid #059669;
}

.prose td {
  padding: 1rem;
  border-bottom: 1px solid rgba(5, 150, 105, 0.3);
  color: #d1d5db;
}

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

.prose tr:hover {
  background: rgba(5, 150, 105, 0.1);
}

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

.prose code {
  background: #0a1628;
  color: #34d399;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: #0a1628;
  color: #d1d5db;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

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

.prose hr {
  border: none;
  border-top: 2px solid rgba(5, 150, 105, 0.3);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

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

/* Mobile Responsive Typography */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }
  
  .prose h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th, .prose td {
    padding: 0.75rem 0.5rem;
  }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}
