/* Custom animations and overrides for HeroSpin Forest Warden theme */

/* Keyframe animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translateY(-15px) translateX(10px) scale(1.1);
    opacity: 1;
  }
  66% {
    transform: translateY(-5px) translateX(-8px) scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.7;
  }
}

@keyframes magicalGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.8), 0 0 60px rgba(251, 191, 36, 0.3);
  }
}

@keyframes enchantedPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Parallax elements */
.parallax-element {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.parallax-element:nth-child(2n) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.parallax-element:nth-child(3n) {
  animation-delay: -4s;
  animation-duration: 7s;
}

/* Particle effects */
.particle {
  animation: particleFloat 4s ease-in-out infinite;
  pointer-events: none;
}

.particle:nth-child(2n) {
  animation-delay: -1s;
  animation-duration: 5s;
}

.particle:nth-child(3n) {
  animation-delay: -2.5s;
  animation-duration: 6s;
}

/* Magical glow effects */
.magical-glow {
  animation: magicalGlow 3s ease-in-out infinite;
}

.enchanted-pulse {
  animation: enchantedPulse 2s ease-in-out infinite;
}

/* Forest Warden theme colors and effects */
.forest-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 25%, #047857 50%, #059669 75%, #10b981 100%);
}

.jade-gold-gradient {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #fbbf24 100%);
}

.enchanted-border {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #10b981, #fbbf24) border-box;
}

/* Enhanced prose styling for markdown content readability */
.prose {
  max-width: 100%;
  color: #1f2937;
  line-height: 1.7;
}

.prose h2 {
  color: #064e3b;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #10b981;
  padding-bottom: 0.5rem;
}

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

.prose p {
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 1.125rem;
}

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

.prose li {
  margin-bottom: 0.75rem;
  color: #4b5563;
  font-size: 1.125rem;
}

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  overflow-x: auto;
}

.prose th {
  background: linear-gradient(135deg, #064e3b, #065f46);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #10b981;
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid #d1fae5;
  color: #374151;
}

.prose tr:nth-child(even) {
  background: rgba(16, 185, 129, 0.05);
}

.prose tr:hover {
  background: rgba(16, 185, 129, 0.1);
}

.prose blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4b5563;
  background: rgba(16, 185, 129, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

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

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

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

.prose a {
  color: #10b981;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #059669;
}

/* Prose styling for readability */
.prose-enhanced {
  line-height: 1.7;
  color: #1f2937;
}

.prose-enhanced h2 {
  color: #064e3b;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-enhanced p {
  margin-bottom: 1.25rem;
  color: #374151;
}

.prose-enhanced ul {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.prose-enhanced li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

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

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

/* Custom button styles */
.btn-forest-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-forest-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-forest-secondary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-forest-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

/* Mobile burger menu */
.burger-menu {
  background: rgba(6, 78, 59, 0.95);
  backdrop-filter: blur(10px);
}

/* Sticky navigation */
.nav-sticky {
  backdrop-filter: blur(10px);
  background: rgba(6, 78, 59, 0.9);
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border: 3px solid #10b981;
  border-radius: 1rem;
  position: relative;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #10b981, #34d399, #fbbf24);
  border-radius: 1rem;
  z-index: -1;
  animation: magicalGlow 3s ease-in-out infinite;
}

/* FAQ styling */
.faq-item {
  border-bottom: 1px solid #d1fae5;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(16, 185, 129, 0.05);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .parallax-element {
    animation-duration: 4s;
  }

  .particle {
    animation-duration: 3s;
  }

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

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

  .prose p,
  .prose li {
    font-size: 1rem;
  }

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

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