/* Keyframes and Custom Animations */
@keyframes flame-flicker {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1);
  }
  50% {
    transform: scale(0.98) rotate(-0.5deg);
    filter: brightness(0.95);
  }
  75% {
    transform: scale(1.02) rotate(0.5deg);
    filter: brightness(1.05);
  }
}

@keyframes ember-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.6);
  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

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

@keyframes spark-ignite {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 165, 0, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.4);
  }
}

/* Flame Wave Patterns */
.flame-wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ff4500 20%,
    #ff6b35 40%,
    #ffa500 60%,
    #ff4500 80%,
    transparent 100%
  );
  animation: flame-flicker 3s ease-in-out infinite;
}

.flame-wave::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #ff6b35 25%, #ff4500 50%, #ffa500 75%, transparent 100%);
  animation: flame-flicker 2.5s ease-in-out infinite reverse;
}

/* Button Spark Effects */
.btn-ignite {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-ignite:hover {
  animation: spark-ignite 0.6s ease-in-out;
}

.btn-ignite::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.3) 0%, transparent 70%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.btn-ignite:hover::before {
  width: 200%;
  height: 200%;
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 30s linear infinite;
}

/* Parallax Elements */
.parallax-element {
  animation: parallax-float 4s ease-in-out infinite;
}

/* Ember Glow Effects */
.ember-glow {
  animation: ember-glow 2s ease-in-out infinite;
}

/* Prose Styling for Readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #e5e7eb;
  font-size: 1rem;
}

.prose h2 {
  color: #ffa500;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #ff4500, #ffa500);
}

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

.prose p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

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

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

.prose ul li::marker {
  color: #ffa500;
}

.prose ol li::marker {
  color: #ffa500;
  font-weight: 600;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table tbody {
  display: table;
  width: 100%;
}

.prose th,
.prose td {
  padding: 1rem 0.75rem;
  border: 1px solid #374151;
  text-align: left;
  white-space: normal;
}

.prose th {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffa500;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.prose td {
  background: rgba(31, 41, 55, 0.3);
}

.prose blockquote {
  border-left: 4px solid #ffa500;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(255, 165, 0, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

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

.prose em {
  color: #ff6b35;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .prose {
    font-size: 0.875rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.5rem;
  }
}

/* Mobile Navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

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

body {
  overflow: auto;
}
