/*
  Vault Apps launch splash.

  Shared brand for the Vault Apps library. Copy this file together with
  Components/VaultAppsSplash.razor, wwwroot/img/vault-apps-waiting.gif, and
  ScriptureMemory.Core/Startup/VaultAppsBrand.cs.
  Keep the splash to the title, tagline, bottom site link, and waiting GIF. Do not
  add a product name, scripture, or an app logo — each app resumes its own session
  behind this screen.

  Title: Vault Apps
  Tagline: Your secret vaults for important information
  Site: https://vaultapps.net
  Wait: vault-apps-waiting.gif hourglass (18rem / 3×) under the site link with a
        lighter radial center that masks/fades to the splash (aria-busy / "Waiting")

  Layout: column flex — copy grows and centers; footer stays at the bottom.
  Do not use a row flex + absolute footer: if absolute fails, the site link sits
  beside the title and the wait graphic disappears.

  Host index.html files keep a matching inline copy so the words paint before this
  stylesheet finishes loading.
*/

.vault-splash {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, rgba(224, 180, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(138, 98, 48, 0.2), transparent 50%),
    #070605;
}

/* Fills remaining height so title + tagline stay vertically centered above the footer. */
.vault-splash-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 42rem;
  text-align: center;
}

.vault-splash-title {
  margin: 0;
  font-family: Cinzel, "Palatino Linotype", Georgia, serif;
  font-size: clamp(3rem, 11vw, 5.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: #f6d56a;
}

.vault-splash-tagline {
  max-width: 22rem;
  margin: 0.9rem auto 0;
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  line-height: 1.35;
  color: #c9b48a;
}

/* Bottom block: site link, then waiting GIF directly underneath. */
.vault-splash-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  width: 100%;
  padding-top: 1rem;
}

.vault-splash-site {
  margin: 0;
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: #e0b44a;
}

.vault-splash-site:hover,
.vault-splash-site:focus-visible {
  color: #f6d56a;
  text-decoration: underline;
  outline: none;
}

/* Hourglass GIF wait signal under the site link (3× prior size).
   Lighter radial wash behind the GIF; mask fades the GIF's black square into the splash. */
.vault-splash-wait {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 20rem;
  height: 20rem;
  min-height: 18rem;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(243, 230, 200, 0.28) 0%,
      rgba(224, 180, 74, 0.14) 32%,
      rgba(7, 6, 5, 0.08) 58%,
      transparent 72%
    );
}

.vault-splash-wait-gif {
  display: block;
  width: 18rem;
  height: 18rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, rgba(0, 0, 0, 0.65) 55%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 38%, rgba(0, 0, 0, 0.65) 55%, transparent 74%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .vault-splash-wait-gif {
    /* Keep a static frame visible; browsers still decode the first GIF frame. */
    opacity: 0.95;
  }
}
