/**
 * Initial-load indicator styles.
 *
 * Loaded from `public/` as an external stylesheet so the deployed
 * Content-Security-Policy (`style-src 'self'`) covers it without hashes.
 * See assert-csp-safe.mjs for why inline <style> is forbidden.
 *
 * Dark-mode awareness: `theme-init.js` adds `.dark` to <html> before
 * this stylesheet paints, so the correct palette is applied on the very
 * first frame.
 */

/* ── Initial-load pulsing logo ─────────────────────────────────── */
#app-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #eff5fa; /* --app-bg light */
}

#app-loader img {
  width: 80px;
  height: auto;
  animation: loader-pulse 1.8s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1);    }
}

/* ── Dark mode ─────────────────────────────────────────────────── */
.dark #app-loader {
  background: #000000; /* --app-bg dark */
}

/* Same filter chain used in TheHeader.vue for the logo on dark backgrounds */
.dark #app-loader img {
  filter: brightness(0) invert(1) sepia(1) saturate(8) hue-rotate(175deg);
}
