/* Neon Syndicate Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes neon-pulse {
  0%, 100% { 
    text-shadow: 0 0 10px #FF0040, 0 0 20px #FF0040, 0 0 30px #FF0040;
    filter: brightness(1);
  }
  50% { 
    text-shadow: 0 0 20px #FF0040, 0 0 40px #FF0040, 0 0 60px #DC002E;
    filter: brightness(1.2);
  }
}

@keyframes neon-border {
  0%, 100% { 
    box-shadow: 0 0 5px #0047FF, 0 0 10px #0047FF, inset 0 0 5px rgba(0, 71, 255, 0.2);
  }
  50% { 
    box-shadow: 0 0 10px #0066FF, 0 0 20px #0066FF, 0 0 30px #0066FF, inset 0 0 10px rgba(0, 102, 255, 0.3);
  }
}

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

@keyframes parallax-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes smoke-drift {
  0% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.1; }
  50% { transform: translateX(100px) translateY(-50px) rotate(180deg); opacity: 0.2; }
  100% { transform: translateX(200px) translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes coin-explode {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
  100% { transform: scale(0.5) translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Neon glow utilities */
.neon-red {
  text-shadow: 0 0 10px #FF0040, 0 0 20px #FF0040, 0 0 30px #DC002E;
  animation: neon-pulse 2s ease-in-out infinite;
}

.neon-blue {
  text-shadow: 0 0 10px #0047FF, 0 0 20px #0066FF, 0 0 30px #0066FF;
}

.neon-border {
  border: 2px solid #0047FF;
  animation: neon-border 2s ease-in-out infinite;
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #FF0040, #0047FF, #FF0040);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.5;
}

/* Chrome reflection effect */
.chrome-reflect {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.chrome-reflect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: chrome-shine 3s ease-in-out infinite;
}

@keyframes chrome-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Smoke background effect */
.smoke-bg {
  position: relative;
  overflow: hidden;
}

.smoke-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(0, 71, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* Parallax elements */
.parallax-item {
  animation: parallax-float 6s ease-in-out infinite;
  will-change: transform;
}

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

/* Prose styling for readability */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #e0e0e0;
  font-size: 1rem;
}

.prose h2 {
  color: #FF0040;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  text-shadow: 0 0 15px rgba(255, 0, 64, 0.4);
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #0066FF;
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #d0d0d0;
}

.prose p:first-of-type {
  font-size: 1.1rem;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin-bottom: 1.75rem;
  padding-left: 1.75rem;
  color: #d0d0d0;
}

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

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

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  padding-left: 0.5rem;
}

.prose li::marker {
  color: #FF0040;
}

.prose a {
  color: #0066FF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #FF0040;
  text-shadow: 0 0 8px rgba(255, 0, 64, 0.5);
}

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

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 0 20px rgba(0, 71, 255, 0.3), 0 0 40px rgba(255, 0, 64, 0.2);
}

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

.prose thead {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.prose th {
  background: transparent;
  color: #FF0040;
  padding: 1rem 0.75rem;
  text-align: left;
  border: 1px solid #333;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 1rem 0.75rem;
  border: 1px solid #2a2a2a;
  color: #d0d0d0;
  background: rgba(15, 15, 15, 0.6);
}

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

.prose tbody tr:hover {
  background: rgba(0, 71, 255, 0.05);
}

.prose tr:nth-child(even) td {
  background: rgba(26, 26, 26, 0.7);
}

.prose blockquote {
  border-left: 4px solid #0047FF;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #b0b0b0;
  background: rgba(0, 71, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 0 15px rgba(0, 71, 255, 0.1);
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.table-responsive table {
  margin: 0;
  display: table;
}

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

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF0040, #0047FF);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #DC002E, #0066FF);
}

/* Burger menu animations */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* CTA button effects */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.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;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-custom {
    backdrop-filter: blur(10px);
  }
}
