/* ============================================================
   Site-wide space background — matches "Hussain's World"
   (dark teal void + glowing animated starfield)
   Loaded on every page via header.php.
   ============================================================ */

/* ---------- DARK: the deep-space void (matches the World) ---------- */
[data-theme="dark"] {
  --space-void: #06181a;
  --bg-dark: #06181a;
  --bg-card: #0d2124;
  --text-primary: #e8f4f2;
  --text-secondary: #9fc0bc;
  --border-color: rgba(148, 226, 213, 0.14);
  --bg-input: #0a1c1f;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --bg-footer: rgba(9, 24, 26, 0.85);
  --space-glass: rgba(13, 34, 37, 0.72);
}

/* ---------- LIGHT: a daylight version of the same space ---------- */
[data-theme="light"] {
  --space-void: #e7f1ef;
  --bg-dark: #e7f1ef;
  --bg-card: #ffffff;
  --text-primary: #123330;
  --text-secondary: #4a6b68;
  --border-color: rgba(20, 90, 90, 0.16);
  --bg-input: #ffffff;
  --shadow-color: rgba(20, 60, 60, 0.14);
  --bg-footer: rgba(255, 255, 255, 0.85);
  --space-glass: rgba(255, 255, 255, 0.72);
}

body {
  background-color: var(--space-void) !important;
}

/* radial nebula glows behind everything — tuned per theme */
.bg-fixed {
  z-index: -3 !important;
  background-color: var(--space-void) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
[data-theme="dark"] .bg-fixed {
  background-image:
    radial-gradient(1200px 700px at 72% 18%, rgba(24, 66, 68, 0.42), transparent 60%),
    radial-gradient(1000px 640px at 18% 82%, rgba(18, 52, 56, 0.45), transparent 60%),
    radial-gradient(760px 520px at 45% 55%, rgba(20, 58, 60, 0.28), transparent 62%) !important;
}
[data-theme="light"] .bg-fixed {
  background-image:
    radial-gradient(1200px 700px at 72% 18%, rgba(120, 200, 195, 0.30), transparent 60%),
    radial-gradient(1000px 640px at 18% 82%, rgba(150, 210, 220, 0.28), transparent 60%),
    radial-gradient(760px 520px at 45% 55%, rgba(180, 220, 215, 0.22), transparent 62%) !important;
}

/* kill the old purple/pink corner glows so they don't clash with the teal */
body::before,
body::after {
  display: none !important;
}

/* animated starfield canvas */
#site-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  display: block;
}
