/* Aurora Spin Theme - Custom Styles */

/* Parallax Background Animation */
@keyframes parallax-float {
  0%, 100% {
    transform: translateY(0) scale(1.05);
  }
  50% {
    transform: translateY(-20px) scale(1.08);
  }
}

.parallax-bg {
  animation: parallax-float 20s ease-in-out infinite;
}

/* Aurora Mist Effect */
@keyframes aurora-shimmer {
  0%, 100% {
    opacity: 0.3;
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.5;
    background-position: 100% 50%;
  }
}

.aurora-mist {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(20, 184, 166, 0.2),
    rgba(251, 191, 36, 0.1)
  );
  background-size: 200% 200%;
  animation: aurora-shimmer 15s ease infinite;
}

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

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

/* Glitter Sparkle Animation */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Neon Glow Animation */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5),
                0 0 20px rgba(139, 92, 246, 0.3),
                0 0 30px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.6),
                0 0 30px rgba(20, 184, 166, 0.4),
                0 0 40px rgba(20, 184, 166, 0.3);
  }
}

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

.table-responsive table {
  min-width: 600px;
}

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

.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: #14b8a6;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.prose p {
  margin-bottom: 1.5rem;
  color: #e5e7eb;
  line-height: 1.7;
}

.prose a {
  color: #14b8a6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

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

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

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

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

.prose li::marker {
  color: #8b5cf6;
}

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

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

.prose blockquote {
  border-left: 4px solid #8b5cf6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(139, 92, 246, 0.1);
  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;
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose thead {
  background: rgba(139, 92, 246, 0.2);
}

.prose th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #fbbf24;
  border-bottom: 2px solid rgba(139, 92, 246, 0.4);
}

.prose td {
  padding: 1rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  color: #e5e7eb;
}

.prose tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
  transition: background 0.3s ease;
}

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

.prose code {
  background: rgba(139, 92, 246, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9em;
  color: #14b8a6;
}

.prose pre {
  background: rgba(30, 27, 75, 0.8);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

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

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

/* Ensure tables are scrollable on small devices */
@media (max-width: 640px) {
  .table-responsive {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
