/**
 * NovaFolio — Splash Screen Styles
 *
 * Minimal splash overlay for pageload.
 * White background with fade-out animation.
 *
 * @since 1.7.0
 */

/* ── Splash overlay ────────────────────────────────────────────────── */
#nvf-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
}

/* ── Splash content ────────────────────────────────────────────────── */
.nvf-splash-inner {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 2px solid rgba(17, 24, 39, 0.18);
  border-top-color: rgba(17, 24, 39, 0.7);
  border-radius: 50%;
  animation: nvf-splash-spin 0.75s linear infinite;
}

/* ── Pulse animation ──────────────────────────────────────────────── */
@keyframes nvf-splash-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes nvf-splash-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Fade-out state ────────────────────────────────────────────────── */
#nvf-splash.nvf-splash-fade-out {
  animation: nvf-splash-fade 1.2s ease-in-out forwards;
  pointer-events: none;
}

@keyframes nvf-splash-fade {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ── Respect prefers-reduced-motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #nvf-splash,
  .nvf-splash-inner {
    animation: none !important;
  }

  #nvf-splash {
    display: none !important;
  }
}
