/* ============================================================
   NAUSTALGIAOS LANDING PAGE - AAA VISUAL UPGRADE v1.0
   Professional game-quality atmospheric effects
   
   Layer this AFTER styles.css for enhanced visuals
============================================================ */

/* ============================================================
   ATMOSPHERIC BASE - Deep void with subtle nebula
============================================================ */
#startOverlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Central light source - warm glow behind logo */
    radial-gradient(ellipse 60% 40% at 50% 35%, rgba(255, 200, 100, 0.04) 0%, transparent 50%),
    /* Nebula clouds */
    radial-gradient(ellipse 80% 60% at 30% 70%, rgba(120, 0, 200, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse 70% 50% at 75% 25%, rgba(200, 0, 150, 0.05) 0%, transparent 35%),
    radial-gradient(ellipse 50% 80% at 20% 30%, rgba(80, 0, 180, 0.04) 0%, transparent 45%),
    /* Depth gradient - rich black */
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(15, 5, 25, 0) 0%, rgba(5, 2, 10, 0.8) 100%),
    linear-gradient(180deg, #030105 0%, #050208 30%, #08030f 60%, #040206 100%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SUBTLE GRID PATTERN - Adds depth and sci-fi feel
============================================================ */
#startOverlay .grid-layer {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 0, 200, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 200, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* ============================================================
   FOG/MIST LAYERS - Atmospheric depth
============================================================ */
#startOverlay .fog-layer {
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(100, 0, 150, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 30% 90%, rgba(150, 0, 200, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 25% at 70% 95%, rgba(100, 50, 180, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 2;
  animation: fogDrift 20s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes fogDrift {
  0%, 100% { transform: translateX(0) translateY(0); opacity: 0.8; }
  33% { transform: translateX(3%) translateY(-2%); opacity: 1; }
  66% { transform: translateX(-2%) translateY(1%); opacity: 0.9; }
}

/* Upper fog - subtle */
#startOverlay .fog-layer-upper {
  position: absolute;
  inset: -10%;
  background: 
    radial-gradient(ellipse 120% 40% at 50% -10%, rgba(80, 0, 120, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
  animation: fogDriftUpper 15s ease-in-out infinite reverse;
  filter: blur(60px);
}

@keyframes fogDriftUpper {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5%); opacity: 0.8; }
}

/* ============================================================
   LOGO BOX - Remove hard border, add corner accents + glow
============================================================ */
#bootLogo {
  /* Remove the hard border */
  border: none !important;
  /* Deeper, more dramatic background */
  background: 
    /* Inner glow from title */
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 229, 0, 0.03) 0%, transparent 50%),
    /* Subtle inner edge highlight */
    linear-gradient(180deg, rgba(255, 0, 200, 0.05) 0%, transparent 2%, transparent 98%, rgba(255, 0, 200, 0.03) 100%),
    /* Base */
    linear-gradient(145deg, rgba(10, 5, 20, 0.92) 0%, rgba(5, 3, 12, 0.96) 50%, rgba(8, 4, 16, 0.92) 100%) !important;
  /* Dramatic glow - light emanating from within */
  box-shadow: 
    /* Outer bloom */
    0 0 100px rgba(255, 229, 0, 0.08),
    0 0 200px rgba(255, 0, 180, 0.06),
    /* Depth shadow */
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 5px 20px rgba(0, 0, 0, 0.6),
    /* Inner depth */
    inset 0 0 100px rgba(0, 0, 0, 0.5),
    inset 0 0 200px rgba(255, 0, 180, 0.02) !important;
  border-radius: 12px !important;
  /* Subtle backdrop blur for depth */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Corner accents - top left */
#bootLogo::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 60px;
  height: 60px;
  border-top: 2px solid rgba(255, 0, 200, 0.6);
  border-left: 2px solid rgba(255, 0, 200, 0.6);
  border-radius: 12px 0 0 0;
  pointer-events: none;
  z-index: 20;
  box-shadow: 
    -5px -5px 20px rgba(255, 0, 200, 0.3),
    inset 5px 5px 10px rgba(255, 0, 200, 0.1);
  animation: cornerPulse 4s ease-in-out infinite;
}

/* Corner accents - bottom right */
#bootLogo::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid rgba(255, 0, 200, 0.6);
  border-right: 2px solid rgba(255, 0, 200, 0.6);
  border-radius: 0 0 12px 0;
  pointer-events: none;
  z-index: 20;
  box-shadow: 
    5px 5px 20px rgba(255, 0, 200, 0.3),
    inset -5px -5px 10px rgba(255, 0, 200, 0.1);
  animation: cornerPulse 4s ease-in-out infinite 2s;
}

@keyframes cornerPulse {
  0%, 100% { 
    border-color: rgba(255, 0, 200, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.2);
  }
  50% { 
    border-color: rgba(255, 0, 200, 0.8);
    box-shadow: 0 0 30px rgba(255, 0, 200, 0.4), 0 0 60px rgba(255, 0, 200, 0.2);
  }
}

/* Additional corners via wrapper pseudo-elements if needed */
.corner-accent {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 20;
}

.corner-accent.top-right {
  top: -1px;
  right: -1px;
  border-top: 2px solid rgba(255, 229, 0, 0.4);
  border-right: 2px solid rgba(255, 229, 0, 0.4);
  border-radius: 0 12px 0 0;
  box-shadow: 5px -5px 20px rgba(255, 229, 0, 0.2);
  animation: cornerPulseYellow 4s ease-in-out infinite 1s;
}

.corner-accent.bottom-left {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid rgba(255, 229, 0, 0.4);
  border-left: 2px solid rgba(255, 229, 0, 0.4);
  border-radius: 0 0 0 12px;
  box-shadow: -5px 5px 20px rgba(255, 229, 0, 0.2);
  animation: cornerPulseYellow 4s ease-in-out infinite 3s;
}

@keyframes cornerPulseYellow {
  0%, 100% { 
    border-color: rgba(255, 229, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 229, 0, 0.15);
  }
  50% { 
    border-color: rgba(255, 229, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 229, 0, 0.3);
  }
}

/* ============================================================
   TITLE - Enhanced bloom and glow
============================================================ */
#logoTitle {
  /* More dramatic text glow */
  text-shadow: 
    0 0 2px #FFE500,
    0 0 10px #FFE500,
    0 0 30px #FFE500,
    0 0 60px rgba(255, 229, 0, 0.7),
    0 0 100px rgba(255, 229, 0, 0.5),
    0 0 150px rgba(255, 229, 0, 0.3),
    0 0 200px rgba(255, 200, 0, 0.2) !important;
  /* Slight blur for bloom effect */
  filter: drop-shadow(0 0 20px rgba(255, 229, 0, 0.4));
}

/* Enhanced breathing animation */
@keyframes titleBreath {
  0%, 100% { 
    text-shadow: 
      0 0 2px #FFE500,
      0 0 10px #FFE500,
      0 0 30px #FFE500,
      0 0 60px rgba(255, 229, 0, 0.6),
      0 0 100px rgba(255, 229, 0, 0.4),
      0 0 150px rgba(255, 229, 0, 0.2);
    filter: drop-shadow(0 0 15px rgba(255, 229, 0, 0.3));
  }
  50% { 
    text-shadow: 
      0 0 5px #FFE500,
      0 0 15px #FFE500,
      0 0 40px #FFE500,
      0 0 80px rgba(255, 229, 0, 0.8),
      0 0 120px rgba(255, 229, 0, 0.5),
      0 0 180px rgba(255, 0, 200, 0.15);
    filter: drop-shadow(0 0 25px rgba(255, 229, 0, 0.5));
  }
}

/* OS suffix - more dramatic magenta */
#logoTitle .os-suffix {
  text-shadow: 
    0 0 2px #ff00ff,
    0 0 10px #ff00ff,
    0 0 30px #ff00ff,
    0 0 60px rgba(255, 0, 255, 0.7),
    0 0 100px rgba(255, 0, 255, 0.4) !important;
  filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.5));
}

/* ============================================================
   VERSION TEXT - Subtle glow
============================================================ */
#logoVersion {
  text-transform: lowercase !important;
  color: rgba(255, 0, 200, 0.5) !important;
  text-shadow: 0 0 20px rgba(255, 0, 200, 0.3) !important;
  border-top: 1px solid rgba(255, 0, 200, 0.2) !important;
  letter-spacing: 0.3em !important;
  font-size: 0.7rem !important;
}

/* ============================================================
   GLYPHS - Floating with individual glow
============================================================ */
#logoGlyphs {
  text-shadow: 
    0 0 10px rgba(255, 0, 255, 0.8),
    0 0 30px rgba(255, 0, 255, 0.5),
    0 0 60px rgba(255, 0, 255, 0.3) !important;
  filter: drop-shadow(0 0 10px rgba(255, 0, 200, 0.4));
}

/* ============================================================
   POWER BUTTON - Dramatic focal point
============================================================ */
#startBtn {
  filter: 
    drop-shadow(0 0 15px #FFE500) 
    drop-shadow(0 0 30px rgba(255, 229, 0, 0.6))
    drop-shadow(0 0 60px rgba(255, 229, 0, 0.4))
    drop-shadow(0 0 100px rgba(255, 0, 200, 0.2)) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#startBtn:hover {
  filter: 
    drop-shadow(0 0 20px #FFE500) 
    drop-shadow(0 0 50px rgba(255, 229, 0, 0.8))
    drop-shadow(0 0 100px rgba(255, 229, 0, 0.5))
    drop-shadow(0 0 150px rgba(255, 0, 200, 0.3)) !important;
  transform: scale(1.1);
}

/* Orbital rings - more visible */
#bootAction::before {
  border: 1px solid rgba(255, 229, 0, 0.25) !important;
  box-shadow: 
    0 0 20px rgba(255, 229, 0, 0.15),
    inset 0 0 20px rgba(255, 229, 0, 0.05);
}

#bootAction::after {
  border: 1px dashed rgba(255, 0, 200, 0.2) !important;
  box-shadow: 
    0 0 15px rgba(255, 0, 200, 0.1),
    inset 0 0 15px rgba(255, 0, 200, 0.03);
}

/* ============================================================
   LIGHT RAYS - Disabled in favor of void geometry
============================================================ */
#startOverlay .light-rays {
  display: none !important;
}

/* ============================================================
   VOID GEOMETRY SUPPORT
   3D geometric shapes floating in the void
============================================================ */
#voidGeometry {
  /* Container styles set by JS */
}

/* Shape glow enhancement */
.void-shape {
  filter: blur(0.3px);
}

.void-shape--cube,
.void-shape--octahedron {
  transform-style: preserve-3d;
}

/* Shapes that pass in FRONT of UI get extra glow */
.void-shape[style*="z-index: 150"] {
  filter: 
    blur(0.5px)
    drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
}

/* ============================================================
   FLOATING PARTICLES - Multiple depth layers
============================================================ */
#startOverlay .particle-layer-back {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#startOverlay .particle-layer-back .particle-dot {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 200, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 200, 255, 0.6);
  animation: particleFloat 20s ease-in-out infinite;
}

#startOverlay .particle-layer-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

#startOverlay .particle-layer-front .particle-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 229, 0, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 229, 0, 0.8), 0 0 20px rgba(255, 229, 0, 0.4);
  animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0) translateX(0); 
    opacity: 0.3;
  }
  25% { 
    transform: translateY(-20px) translateX(10px); 
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-10px) translateX(-5px); 
    opacity: 0.5;
  }
  75% { 
    transform: translateY(-30px) translateX(15px); 
    opacity: 0.7;
  }
}

/* ============================================================
   VIGNETTE - Stronger, more cinematic
============================================================ */
.vignette-layer {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, 
    transparent 0%, 
    transparent 25%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(0, 0, 0, 0.7) 75%, 
    rgba(0, 0, 0, 0.95) 100%) !important;
}

/* ============================================================
   PHOTOSENSITIVITY WARNING - Integrate better
============================================================ */
#photosensitivityWarning {
  background: linear-gradient(180deg, 
    rgba(10, 5, 20, 0.7) 0%, 
    rgba(5, 3, 12, 0.8) 100%) !important;
  border: none !important;
  border-left: 2px solid rgba(255, 180, 50, 0.4) !important;
  border-radius: 4px !important;
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(255, 150, 50, 0.03),
    inset 0 0 40px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 30px !important;
  max-width: 480px !important;
}

.warning-header {
  color: rgba(255, 180, 80, 0.85) !important;
  text-shadow: 0 0 15px rgba(255, 150, 50, 0.4) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.2em !important;
}

.warning-body {
  color: rgba(200, 150, 200, 0.6) !important;
  font-size: 0.7rem !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
}

/* ============================================================
   EDGE LINES - More subtle glow
============================================================ */
#startOverlay .edge-line {
  height: 1px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 0, 200, 0.1) 20%,
    rgba(255, 0, 200, 0.3) 50%,
    rgba(255, 0, 200, 0.1) 80%,
    transparent 100%) !important;
  box-shadow: 0 0 20px rgba(255, 0, 200, 0.3);
}

/* ============================================================
   CORNER DATA - More ethereal
============================================================ */
#startOverlay .corner-data {
  color: rgba(255, 150, 255, 0.35) !important;
  text-shadow: 0 0 10px rgba(255, 0, 200, 0.3);
  font-size: 10px;
  letter-spacing: 0.15em;
}

/* ============================================================
   GHOST SIGIL (left side) - Enhanced presence
============================================================ */
#glitchGhost {
  filter: 
    drop-shadow(0 0 20px rgba(0, 255, 255, 0.6))
    drop-shadow(0 0 40px rgba(0, 255, 255, 0.4))
    drop-shadow(0 0 80px rgba(0, 255, 255, 0.2));
}

/* ============================================================
   BOOT PROMPT TEXT - Subtle glow
============================================================ */
#bootPrompt {
  color: rgba(255, 229, 0, 0.7) !important;
  text-shadow: 
    0 0 10px rgba(255, 229, 0, 0.5),
    0 0 30px rgba(255, 229, 0, 0.3);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
}

/* ============================================================
   FOOTER - More integrated
============================================================ */
#bootFooter {
  color: rgba(255, 150, 255, 0.4) !important;
  text-shadow: 0 0 15px rgba(255, 0, 200, 0.3);
}

#bootFooter .separator {
  color: rgba(255, 0, 200, 0.3);
}

/* ============================================================
   SCANLINES - More film-like
============================================================ */
#startOverlay::after {
  background: 
    repeating-linear-gradient(0deg, 
      rgba(0, 0, 0, 0.03) 0px, 
      rgba(0, 0, 0, 0.03) 1px, 
      transparent 1px, 
      transparent 2px) !important;
  animation: scanlinesDrift 8s linear infinite !important;
}

@keyframes scanlinesDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* ============================================================
   GLOBAL ATMOSPHERE BREATHING - Subtle
============================================================ */
#startOverlay {
  animation: atmosphereBreath 12s ease-in-out infinite !important;
}

@keyframes atmosphereBreath {
  0%, 100% { 
    filter: brightness(1) saturate(1);
  }
  50% { 
    filter: brightness(1.03) saturate(1.05);
  }
}

/* ============================================================
   CHROMATIC ABERRATION ON EDGES - Subtle split
============================================================ */
#startOverlay .chromatic-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: screen;
  opacity: 0;
  animation: chromaticFlicker 10s ease-in-out infinite;
}

@keyframes chromaticFlicker {
  0%, 90%, 100% { opacity: 0; }
  92% { opacity: 0.3; }
  94% { opacity: 0; }
  96% { opacity: 0.2; }
}

/* ============================================================
   FILM GRAIN - Enhanced
============================================================ */
.noise-layer {
  opacity: 0.08 !important;
  mix-blend-mode: overlay !important;
  animation: grainShift 0.1s steps(5) infinite !important;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   AMBIENT LIGHT SOURCES - Subtle pulsing orbs
============================================================ */
#startOverlay .ambient-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  mix-blend-mode: screen;
}

#startOverlay .ambient-light.primary {
  width: 400px;
  height: 400px;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 229, 0, 0.08) 0%, transparent 70%);
  animation: ambientPulsePrimary 8s ease-in-out infinite;
  z-index: 2;
}

#startOverlay .ambient-light.secondary {
  width: 300px;
  height: 300px;
  bottom: 30%;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 0, 180, 0.06) 0%, transparent 70%);
  animation: ambientPulseSecondary 10s ease-in-out infinite 2s;
  z-index: 2;
}

#startOverlay .ambient-light.tertiary {
  width: 250px;
  height: 250px;
  bottom: 25%;
  right: 15%;
  background: radial-gradient(circle, rgba(100, 0, 200, 0.05) 0%, transparent 70%);
  animation: ambientPulseSecondary 12s ease-in-out infinite 4s;
  z-index: 2;
}

@keyframes ambientPulsePrimary {
  0%, 100% { 
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes ambientPulseSecondary {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: scale(1.3);
    opacity: 0.8;
  }
}

/* ============================================================
   HOVER INTERACTIONS - Responsive feedback
============================================================ */
#bootLogo:hover {
  box-shadow: 
    0 0 120px rgba(255, 229, 0, 0.12),
    0 0 250px rgba(255, 0, 180, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 5px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 100px rgba(0, 0, 0, 0.5),
    inset 0 0 200px rgba(255, 0, 180, 0.03) !important;
}

#bootLogo:hover::before,
#bootLogo:hover::after {
  border-color: rgba(255, 0, 200, 0.9);
  box-shadow: 0 0 40px rgba(255, 0, 200, 0.5), 0 0 80px rgba(255, 0, 200, 0.3);
}

/* ============================================================
   MOBILE ADJUSTMENTS
============================================================ */
@media (max-width: 768px) {
  #bootLogo {
    min-width: auto !important;
    width: 90vw !important;
    padding: 30px 20px 25px !important;
  }
  
  #bootLogo::before,
  #bootLogo::after {
    width: 40px;
    height: 40px;
  }
  
  .corner-accent {
    width: 35px;
    height: 35px;
  }
  
  .light-rays {
    display: none;
  }
  
  .fog-layer,
  .fog-layer-upper {
    filter: blur(30px);
  }
  
  .ambient-light {
    display: none;
  }
}
