/* Shared styles for all inner pages */

/* Neon background with grid floor + glow */
.neon-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0f;
}

.neon-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(157, 0, 255, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 20%, rgba(0, 200, 255, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 255, 100, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(157, 0, 255, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 90%, rgba(0, 200, 255, 0.1) 0%, transparent 40%);
}

/* Synthwave grid floor */
.neon-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 45%;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(157, 0, 255, 0.06) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(157, 0, 255, 0.12) 80px,
      rgba(157, 0, 255, 0.12) 81px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(157, 0, 255, 0.08) 80px,
      rgba(157, 0, 255, 0.08) 81px
    );
  transform: perspective(400px) rotateX(45deg);
  transform-origin: center top;
}

/* Neon accent lines */
.neon-line-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff66, #9d00ff, #00c8ff, #00ff66, transparent);
  z-index: 50;
  opacity: 0.6;
}

.neon-line-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c8ff, #00ff66, #9d00ff, #00c8ff, transparent);
  z-index: 50;
  opacity: 0.4;
}

/* Floating neon orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(157, 0, 255, 0.12);
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(0, 200, 255, 0.1);
  bottom: -80px;
  left: -50px;
  animation-delay: 3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 255, 100, 0.08);
  top: 40%;
  left: 60%;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, -20px); }
  50% { transform: translate(-10px, 15px); }
  75% { transform: translate(20px, 10px); }
}

/* Scanlines */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* Back button */
.back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  color: #d580ff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 3px;
  z-index: 100;
  transition: all 0.3s;
  text-shadow: 0 0 8px rgba(157, 0, 255, 0.4);
}

.back-link:hover {
  color: #fff;
  text-shadow: 0 0 15px rgba(157, 0, 255, 0.7), 0 0 30px rgba(157, 0, 255, 0.3);
}

@media (max-width: 768px) {
  .back-link {
    top: 0.8rem;
    left: 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
}

/* Neon flicker for page titles */
.neon-flicker {
  animation: neon-flicker 2s ease-in-out forwards;
}

@keyframes neon-flicker {
  0% { opacity: 0.2; text-shadow: none; }
  2% { opacity: 1; text-shadow: 0 0 20px rgba(157, 0, 255, 0.5); }
  4% { opacity: 0.15; text-shadow: none; }
  6% { opacity: 0.9; text-shadow: 0 0 15px rgba(157, 0, 255, 0.4); }
  7% { opacity: 0.3; text-shadow: none; }
  9% { opacity: 1; text-shadow: 0 0 25px rgba(157, 0, 255, 0.6); }
  14% { opacity: 1; text-shadow: 0 0 20px rgba(157, 0, 255, 0.5); }
  15% { opacity: 0.1; text-shadow: none; }
  16% { opacity: 0.7; text-shadow: 0 0 10px rgba(157, 0, 255, 0.3); }
  17% { opacity: 0.1; text-shadow: none; }
  18% { opacity: 1; text-shadow: 0 0 20px rgba(157, 0, 255, 0.5); }
  28% { opacity: 1; text-shadow: 0 0 25px rgba(157, 0, 255, 0.6); }
  29% { opacity: 0.5; text-shadow: 0 0 5px rgba(157, 0, 255, 0.2); }
  30% { opacity: 1; text-shadow: 0 0 20px rgba(157, 0, 255, 0.5); }
  36% { opacity: 1; text-shadow: 0 0 20px rgba(157, 0, 255, 0.5); }
  37% { opacity: 0.2; text-shadow: none; }
  38% { opacity: 0.8; text-shadow: 0 0 12px rgba(157, 0, 255, 0.4); }
  39% { opacity: 0.3; text-shadow: none; }
  40% { opacity: 0.9; text-shadow: 0 0 18px rgba(157, 0, 255, 0.5); }
  41% { opacity: 0.15; text-shadow: none; }
  43% { opacity: 1; text-shadow: 0 0 30px rgba(157, 0, 255, 0.7), 0 0 60px rgba(157, 0, 255, 0.3); }
  100% { opacity: 1; text-shadow: 0 0 20px rgba(157, 0, 255, 0.5), 0 0 40px rgba(157, 0, 255, 0.2); }
}
