/* ============================================================
   variants/05-pixel-tech-5/css/components.css
   Electric Blue Cyber buttons with neon glow,
   futuristic hover effects, cyber animations
   ============================================================ */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  min-height: var(--touch-target);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Primary button - neon green glow */
.btn-primary {
  background: var(--color-text-secondary);
  color: var(--color-primary);
  border-color: var(--color-text-secondary);
  box-shadow:
    0 0 15px rgb(57, 255, 20, 0.4),
    inset 0 0 20px rgb(57, 255, 20, 0.1);
}

.btn-primary:hover {
  background: #39ff14;
  border-color: #39ff14;
  box-shadow:
    0 0 25px rgb(57, 255, 20, 0.6),
    0 0 50px rgb(57, 255, 20, 0.3),
    inset 0 0 30px rgb(57, 255, 20, 0.15);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 0 10px rgb(57, 255, 20, 0.4),
    inset 0 0 15px rgb(57, 255, 20, 0.1);
}

/* Secondary button - outline style */
.btn-secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-text-secondary);
}

.btn-secondary:hover {
  background: rgb(57, 255, 20, 0.1);
  box-shadow:
    0 0 20px rgb(57, 255, 20, 0.2),
    inset 0 0 15px rgb(57, 255, 20, 0.05);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
  background: rgb(57, 255, 20, 0.15);
}

/* Small button */
.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.75rem;
  min-height: 44px;
}

/* Large button */
.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
  min-height: 56px;
}

/* Button electric sweep effect on hover */
.btn-primary:hover::before,
.btn-secondary:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(57, 255, 20, 0.4), transparent);
  animation: electric-sweep 0.5s ease forwards;
}

@keyframes electric-sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ─── Electric Text Effects ─── */
.electric-text {
  color: var(--color-text-secondary);
  text-shadow:
    0 0 5px rgb(57, 255, 20, 0.6),
    0 0 10px rgb(57, 255, 20, 0.4),
    0 0 20px rgb(57, 255, 20, 0.2);
}

.electric-text-alt {
  color: var(--color-muted);
  text-shadow: 0 0 5px rgb(74, 106, 138, 0.4);
}

/* ─── Neon Cursor Effect ─── */
.neon-cursor {
  position: relative;
}

.neon-cursor::after {
  content: '_';
  position: absolute;
  right: -8px;
  bottom: 0;
  color: var(--color-text-secondary);
  animation: blink 1s step-end infinite;
  text-shadow: 0 0 10px var(--color-text-secondary);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ─── Hover Lift Effect ─── */
.hover-lift {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px rgb(0, 0, 0, 0.4),
    0 0 20px rgb(57, 255, 20, 0.15);
}

/* ─── Pitch Bullets ─── */
.pitch-bullets {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.pitch-bullets li {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-text);
  padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
  position: relative;
  border-bottom: 1px solid var(--color-secondary);
}

.pitch-bullets li::before {
  content: '[-]';
  position: absolute;
  left: 0;
  color: var(--color-muted);
  font-family: var(--font-headline);
}

.pitch-bullets li:nth-child(odd)::before {
  content: '[+]';
  color: var(--color-text-secondary);
  text-shadow: 0 0 5px rgb(57, 255, 20, 0.5);
}

/* ─── Features More Link ─── */
.features-more {
  text-align: center;
  margin-top: var(--space-2xl);
}

.features-more a {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-text-secondary);
  display: inline-block;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgb(57, 255, 20, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.features-more a:hover {
  background: var(--color-text-secondary);
  color: var(--color-primary);
  box-shadow: 0 0 20px rgb(57, 255, 20, 0.3);
}

/* ─── Icon Animations ─── */
.feature-icon svg,
.client-card-icon svg {
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon svg,
.client-card:hover .client-card-icon svg {
  transform: scale(1.1);
}

/* ─── Link Arrow ─── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-ui);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.link-arrow:hover {
  color: var(--color-text-secondary);
  text-shadow: 0 0 8px rgb(57, 255, 20, 0.5);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ─── Electric Border Animation ─── */
@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.animated-border {
  position: relative;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-muted),
    var(--color-accent),
    var(--color-muted)
  );
  background-size: 300% 100%;
  z-index: -1;
  animation: border-flow 3s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.animated-border:hover::before {
  opacity: 1;
}

/* ─── Cyber Glow Effect ─── */
.cyber-glow {
  position: relative;
}

.cyber-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(ellipse at center, rgb(57, 255, 20, 0.1) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.cyber-glow:hover::after {
  opacity: 1;
}

/* ─── Noise Texture Overlay ─── */
.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 1;
}

/* ─── Electric Grid Overlay ─── */
.grid-overlay {
  position: relative;
}

.grid-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(57, 255, 20, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgb(57, 255, 20, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Electric Loading Animation ─── */
@keyframes electric-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.electric-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-secondary);
  border-top-color: var(--color-text-secondary);
  border-right-color: var(--color-muted);
  border-radius: 50%;
  animation: electric-spin 1s linear infinite;
  box-shadow:
    0 0 10px var(--color-text-secondary),
    inset 0 0 10px rgb(57, 255, 20, 0.1);
}

/* ─── Counter Animation ─── */
.counter {
  display: inline-block;
  font-family: var(--font-headline);
  color: var(--color-text-secondary);
  text-shadow: 0 0 5px rgb(57, 255, 20, 0.5);
}

/* ─── Reveal Animation ─── */
@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal 0.4s ease-out forwards;
}

/* ─── Pulse Animation ─── */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 5px var(--color-text-secondary);
  }

  50% {
    box-shadow:
      0 0 20px var(--color-text-secondary),
      0 0 30px rgb(57, 255, 20, 0.4);
  }
}

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

/* ─── Flicker Animation ─── */
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  93% {
    opacity: 0.8;
  }

  94% {
    opacity: 1;
  }

  95% {
    opacity: 0.9;
  }

  96% {
    opacity: 1;
  }
}

.flicker {
  animation: flicker 4s ease-in-out infinite;
}
