/**
 * ANA ENHANCEMENTS - Make Her Breathtaking
 * Additional features to add after base implementation
 */

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 1: AMBIENT PARTICLES
// Floating bioluminescent particles around ANA
// ═══════════════════════════════════════════════════════════════════════════

.ana-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ana-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--stage-color, #00ffff);
  border-radius: 50%;
  opacity: 0;
  animation: particle-drift 8s ease-in-out infinite;
}

.ana-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.ana-particle:nth-child(2) { left: 80%; top: 30%; animation-delay: 1s; }
.ana-particle:nth-child(3) { left: 20%; top: 70%; animation-delay: 2s; }
.ana-particle:nth-child(4) { left: 70%; top: 80%; animation-delay: 3s; }
.ana-particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 4s; }
.ana-particle:nth-child(6) { left: 30%; top: 90%; animation-delay: 5s; }
.ana-particle:nth-child(7) { left: 90%; top: 50%; animation-delay: 6s; }
.ana-particle:nth-child(8) { left: 5%; top: 60%; animation-delay: 7s; }

@keyframes particle-drift {
  0%, 100% { 
    opacity: 0; 
    transform: translate(0, 0) scale(0.5); 
  }
  20% { 
    opacity: 0.8; 
  }
  50% { 
    opacity: 0.6; 
    transform: translate(20px, -30px) scale(1); 
  }
  80% { 
    opacity: 0.3; 
  }
  100% { 
    opacity: 0; 
    transform: translate(40px, -60px) scale(0.5); 
  }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 2: HOLOGRAPHIC SCANLINES
// Subtle tech overlay effect
// ═══════════════════════════════════════════════════════════════════════════

.ana-holographic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.03) 2px,
    rgba(0, 255, 255, 0.03) 4px
  );
  animation: scanline-move 10s linear infinite;
  opacity: 0.5;
}

@keyframes scanline-move {
  from { background-position: 0 0; }
  to { background-position: 0 100px; }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 3: DNA HELIX ORBIT
// Double helix rotating around ANA at higher stages
// ═══════════════════════════════════════════════════════════════════════════

.ana-dna-helix {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: dna-rotate 30s linear infinite;
}

.ana-dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
}

.ana-dna-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--stage-color, #00ffff);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--stage-color, #00ffff);
}

@keyframes dna-rotate {
  from { transform: translate(-50%, -50%) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateY(360deg); }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 4: BIOMARKER VITALS DISPLAY
// Real-time vital signs readout
// ═══════════════════════════════════════════════════════════════════════════

.ana-vitals {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 140px;
}

.ana-vital {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ana-vital-label {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 7px;
}

.ana-vital-value {
  color: #00ff88;
  font-weight: bold;
  font-size: 9px;
}

.ana-vital-value.pulse {
  animation: vital-pulse 1s ease-in-out infinite;
}

@keyframes vital-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 5: HEARTBEAT LINE
// ECG-style line that pulses with ANA's heartbeat
// ═══════════════════════════════════════════════════════════════════════════

.ana-heartbeat-line {
  width: 100%;
  max-width: 140px;
  height: 16px;
  margin: 6px auto 0;
  position: relative;
  overflow: hidden;
}

.ana-heartbeat-svg {
  width: 100%;
  height: 100%;
  animation: heartbeat-scroll 2s linear infinite;
}

.ana-heartbeat-path {
  fill: none;
  stroke: #00ff88;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 3px #00ff88);
}

@keyframes heartbeat-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 6: GROWTH JOURNAL
// Clickable journal showing ANA's growth milestones
// ═══════════════════════════════════════════════════════════════════════════

.ana-journal-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  color: #00ffff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ana-journal-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: scale(1.1);
}

.ana-journal-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  background: rgba(0, 10, 20, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  z-index: 10000;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.ana-journal-title {
  font-size: 18px;
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 16px;
  text-align: center;
}

.ana-journal-entry {
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(0, 255, 255, 0.05);
  border-left: 3px solid var(--stage-color, #00ffff);
  border-radius: 0 8px 8px 0;
}

.ana-journal-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.ana-journal-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 7: COMPANION CELLS (Stage 7 only)
// Tiny "children" that occasionally spawn and orbit
// ═══════════════════════════════════════════════════════════════════════════

.ana-stage-7 .ana-companion {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #ffffff, var(--stage-color));
  border-radius: 50%;
  box-shadow: 0 0 10px var(--stage-color);
  animation: companion-orbit 15s linear infinite;
}

.ana-companion:nth-child(1) { animation-delay: 0s; }
.ana-companion:nth-child(2) { animation-delay: -5s; }
.ana-companion:nth-child(3) { animation-delay: -10s; }

@keyframes companion-orbit {
  from {
    transform: rotate(0deg) translateX(130px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 8: AWAKENING GLOW BURST
// Dramatic effect when ANA first sees the visitor
// ═══════════════════════════════════════════════════════════════════════════

.ana-glow-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--stage-color) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: glow-burst 2s ease-out forwards;
}

@keyframes glow-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 9: BREATHING BACKGROUND
// Subtle pulsing glow behind ANA
// ═══════════════════════════════════════════════════════════════════════════

.ana-breathing-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(var(--stage-color-rgb, 0, 255, 255), 0.1) 0%,
    transparent 50%
  );
  animation: breathing-bg 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes breathing-bg {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

// ═══════════════════════════════════════════════════════════════════════════
// ENHANCEMENT 10: SOUND TOGGLE (Optional)
// Button to enable ambient sounds
// ═══════════════════════════════════════════════════════════════════════════

.ana-sound-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  color: #00ffff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.ana-sound-toggle:hover {
  opacity: 1;
}

.ana-sound-toggle.active {
  background: rgba(0, 255, 255, 0.3);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCEMENT 11: STAGE COUNTDOWN
   Shows time until next evolution stage
   ═══════════════════════════════════════════════════════════════════════════ */

.ana-countdown {
  margin-top: 6px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-align: center;
}

.ana-countdown-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.ana-countdown-value {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--stage-color, #00ffff);
  font-weight: bold;
}

.ana-countdown-stage {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCEMENT 12: BIRTHDAY CELEBRATION
   Special effects every January 30th
   ═══════════════════════════════════════════════════════════════════════════ */

.ana-birthday-mode .ana-container {
  border-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.3),
    0 0 100px rgba(255, 0, 255, 0.2),
    inset 0 0 40px rgba(255, 215, 0, 0.1) !important;
}

.ana-birthday-banner {
  position: absolute;
  top: auto;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: linear-gradient(135deg, #ffd700, #ff6b9d, #00ffff);
  border-radius: 12px;
  font-size: 9px;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  animation: birthday-pulse 1s ease-in-out infinite;
  z-index: 300;
  display: block !important;
  visibility: visible !important;
}

/* Ensure birthday mode shows banner */
.ana-birthday-mode .ana-birthday-banner {
  display: block !important;
  visibility: visible !important;
}

@keyframes birthday-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.ana-firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  animation: firework-burst 1.5s ease-out forwards;
}

@keyframes firework-burst {
  0% { 
    opacity: 1; 
    transform: translate(0, 0) scale(1); 
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--tx, 50px), var(--ty, -50px)) scale(0); 
  }
}

.ana-confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% { 
    opacity: 1; 
    transform: translateY(0) rotate(0deg); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(200px) rotate(720deg); 
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCEMENT 13: EASTER EGGS
   Secret interactions and hidden features
   ═══════════════════════════════════════════════════════════════════════════ */

.ana-secret-unlocked {
  animation: secret-glow 2s ease-out forwards;
}

@keyframes secret-glow {
  0% { 
    filter: brightness(1) hue-rotate(0deg); 
  }
  25% { 
    filter: brightness(2) hue-rotate(90deg); 
  }
  50% { 
    filter: brightness(2) hue-rotate(180deg); 
  }
  75% { 
    filter: brightness(2) hue-rotate(270deg); 
  }
  100% { 
    filter: brightness(1) hue-rotate(360deg); 
  }
}

.ana-secret-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffd700;
  border-radius: 12px;
  color: #ffd700;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  z-index: 500;
  animation: secret-appear 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes secret-appear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ana-rainbow-mode .ana-organism {
  animation: rainbow-shift 3s linear infinite !important;
}

@keyframes rainbow-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.ana-disco-mode .ana-container {
  animation: disco-flash 0.5s ease-in-out infinite alternate;
}

@keyframes disco-flash {
  0% { 
    background: rgba(255, 0, 0, 0.3); 
    border-color: #ff0000;
  }
  33% { 
    background: rgba(0, 255, 0, 0.3); 
    border-color: #00ff00;
  }
  66% { 
    background: rgba(0, 0, 255, 0.3); 
    border-color: #0000ff;
  }
  100% { 
    background: rgba(255, 255, 0, 0.3); 
    border-color: #ffff00;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCEMENT 14: SHARE BUTTON
   Share ANA's progress on social media
   ═══════════════════════════════════════════════════════════════════════════ */

.ana-share-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  color: #00ffff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.ana-share-btn:hover {
  opacity: 1;
  background: rgba(0, 255, 255, 0.2);
  transform: scale(1.1);
}

.ana-share-menu {
  position: absolute;
  bottom: 45px;
  right: 0;
  background: rgba(0, 10, 20, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  z-index: 400;
}

.ana-share-menu.visible {
  display: flex;
  animation: share-menu-appear 0.2s ease-out;
}

@keyframes share-menu-appear {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ana-share-option {
  padding: 8px 12px;
  background: rgba(0, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.ana-share-option:hover {
  background: rgba(0, 255, 255, 0.15);
  color: #00ffff;
}

.ana-share-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: rgba(0, 255, 136, 0.9);
  border-radius: 8px;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  z-index: 10000;
  animation: toast-appear 3s ease-out forwards;
}

@keyframes toast-appear {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}
