/* Animations */
@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(10px, -10px) scale(1.1); opacity: 0.6; }
}

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

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Particle Container */
.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(251, 191, 36, 0.5);
  border-radius: 50%;
  animation: particle-float 6s ease-in-out infinite;
}

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

.particles-container::after {
  top: 60%;
  right: 20%;
  animation-delay: 3s;
}

/* Bonus Badge Glow */
.bonus-badge {
  animation: glow-pulse 3s ease-in-out infinite;
}

#mobile-menu {
  z-index: 40;
  pointer-events: none;
  display: none;
}
/* Mobile Menu Active State */
#mobile-menu.active {
  display: block;
  pointer-events: all;
}

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

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

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

/* CTA Hover Effects */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Parallax Effect */
[data-parallax] {
  transition: transform 0.3s ease-out;
}

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

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

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

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

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

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

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

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

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

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

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

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.75;
  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: 1px solid #334155;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background-color: #0f172a;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #fbbf24;
  border-bottom: 2px solid #334155;
}

.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 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 4px solid #fbbf24;
  font-style: italic;
  color: #94a3b8;
}

.prose code {
  color: #fcd34d;
  background-color: #1e293b;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

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

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.prose hr {
  border: none;
  border-top: 1px solid #334155;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

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

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

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

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

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

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: #fbbf24;
}
