/* Animation Keyframes */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.3);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animation Classes */
.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

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

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

/* Parallax Effect */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

/* Burger Menu Active State */
#burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#burger.active span:nth-child(2) {
  opacity: 0;
}

#burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.table-responsive table {
  min-width: 100%;
  max-width: 100%;
}

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

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

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fcd34d;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  background: linear-gradient(to right, #fcd34d, #fbbf24, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.prose-custom p {
  margin-bottom: 1.25em;
  line-height: 1.7;
  color: #d1d5db;
  font-size: 1rem;
}

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

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

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

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

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

.prose-custom li {
  margin-bottom: 0.75em;
  color: #d1d5db;
}

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

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

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

.prose-custom blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #e5e7eb;
  background: rgba(251, 191, 36, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
}

.prose-custom table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.95rem;
  max-width: 100%;
}

.prose-custom thead {
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.prose-custom th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
}

.prose-custom td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  color: #d1d5db;
}

.prose-custom tbody tr:hover {
  background: rgba(251, 191, 36, 0.05);
  transition: background 0.2s;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(251, 191, 36, 0.2);
}

.prose-custom code {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose-custom pre {
  background: #1a1510;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.prose-custom pre code {
  background: none;
  padding: 0;
  color: #d1d5db;
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
  .prose-custom h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .prose-custom h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .prose-custom p {
    font-size: 0.95rem;
  }
  
  .prose-custom table {
    font-size: 0.875rem;
  }
  
  .prose-custom th,
  .prose-custom td {
    padding: 0.625rem 0.75rem;
  }
}

/* Ensure proper spacing and readability */
.prose-custom > * + * {
  margin-top: 1.25em;
}

.prose-custom > h2 + *,
.prose-custom > h3 + * {
  margin-top: 1em;
}

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