/* Venom Strike Custom Animations & Overrides */

@keyframes venom-pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.05);
  }
}

@keyframes venom-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.8));
  }
}

@keyframes scale-shimmer {
  0% { 
    background-position: -200% center;
  }
  100% { 
    background-position: 200% center;
  }
}

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

@keyframes fang-snap {
  0%, 100% { 
    transform: rotate(0deg) scale(1);
  }
  25% { 
    transform: rotate(-5deg) scale(1.1);
  }
  75% { 
    transform: rotate(5deg) scale(1.1);
  }
}

.venom-pulse {
  animation: venom-pulse 3s ease-in-out infinite;
}

.venom-glow {
  animation: venom-glow 2.5s ease-in-out infinite;
}

.scale-shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(34, 197, 94, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  background-size: 200% 100%;
  animation: scale-shimmer 3s linear infinite;
}

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.fang-snap {
  animation: fang-snap 1.5s ease-in-out infinite;
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Venom Strike Pattern */
.venom-pattern {
  background-image: 
    repeating-linear-gradient(
      45deg,
      rgba(34, 197, 94, 0.05) 0px,
      rgba(34, 197, 94, 0.05) 10px,
      transparent 10px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(234, 179, 8, 0.03) 0px,
      rgba(234, 179, 8, 0.03) 10px,
      transparent 10px,
      transparent 20px
    );
}

.scale-texture {
  background-image: radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
}

/* Enhanced prose styling with responsive units and better readability */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #d1d5db;
}

.prose > * {
  max-width: 75ch;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #e5e7eb;
  font-size: 1.0625rem;
}

.prose h2 {
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-weight: 700;
  color: #22c55e;
  font-size: 2em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: #eab308;
  font-size: 1.5em;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #fbbf24;
  font-size: 1.25em;
  line-height: 1.4;
}

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

.prose li {
  margin-bottom: 0.75em;
  padding-left: 0.25em;
  color: #d1d5db;
  line-height: 1.6;
}

.prose li::marker {
  color: #22c55e;
}

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

.prose strong, .prose b {
  color: #fbbf24;
  font-weight: 600;
}

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

.prose a {
  color: #22c55e;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
  font-weight: 500;
}

.prose a:hover {
  color: #eab308;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  border: 2px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  border-left: 4px solid #22c55e;
  color: #d1d5db;
  font-style: italic;
  background: rgba(34, 197, 94, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9375rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.prose thead {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
}

.prose th {
  background: transparent;
  color: #eab308;
  padding: 1em 1em;
  text-align: left;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 1em 1em;
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #e5e7eb;
  vertical-align: top;
}

.prose tbody tr {
  transition: background-color 0.2s ease;
}

.prose tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.2);
}

.prose tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.4);
}

.prose tbody tr:hover {
  background: rgba(34, 197, 94, 0.08);
}

.prose code {
  color: #22c55e;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: none;
  border-top: 2px solid rgba(34, 197, 94, 0.2);
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.table-responsive table {
  margin: 0;
}

/* Neon Button Effects */
.neon-btn {
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid currentColor;
}

.neon-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, #22c55e, #eab308);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  filter: blur(8px);
}

.neon-btn:hover::before {
  opacity: 0.7;
}

.neon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Reptile Scale Reflections */
.scale-reflection {
  position: relative;
  overflow: hidden;
}

.scale-reflection::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
  transition: left 0.6s;
}

.scale-reflection:hover::after {
  left: 100%;
}

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

/* Responsive typography adjustments for mobile */
@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    font-size: 1.75em;
    margin-top: 2em;
  }
  
  .prose h3 {
    font-size: 1.375em;
    margin-top: 1.75em;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.75em 0.75em;
  }
}
