/* Mycelium Network — Base Styles */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #0a1208;
  --bg-surface: #0d1a0f;
  --bg-elevated: #132816;
  --text-primary: #c4bda8;
  --text-dim: #6b7a5e;
  --text-faint: #3a4a30;
  --glow-primary: #39ff14;
  --glow-active: #00ff41;
  --glow-amber: #ffa500;
  --glow-white: #e8e4d9;
  --purple-deep: #1a0f2e;
  --node-dormant: #1a3a1a;
  --node-discovered: #39ff14;
  --decay-red: #8b2500;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-serif: 'Crimson Pro', Georgia, serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

*:focus-visible {
  outline: 2px solid var(--glow-primary);
  outline-offset: 2px;
}

a { color: var(--glow-primary); text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.8; }

button, input, textarea {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-primary);
  padding: 8px 20px;
  letter-spacing: 0.05em;
}
button:hover { border-color: var(--glow-primary); color: var(--glow-primary); }
button:disabled { opacity: 0.3; cursor: not-allowed; }

input, textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-faint);
  color: var(--text-primary);
  padding: 6px 2px;
  outline: none;
}
input:focus, textarea:focus {
  border-bottom-color: var(--glow-primary);
}

/* Shared animations */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes biolum-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(57, 255, 20, 0.2); }
  50% { text-shadow: 0 0 16px rgba(57, 255, 20, 0.5), 0 0 32px rgba(57, 255, 20, 0.15); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
