/* FASHIONISTAR AI — SVG-FIRST STATIC PRELOADER
   Put this file in: /public/preloader.css
   Purpose: first-paint loading screen with zero React dependency and no video/GIF weight.
*/

:root {
  --fs-gold: #FDA600;
  --fs-gold-soft: #FFE3A3;
  --fs-green: #01454A;
  --fs-navy: #071D2B;
  --fs-cream: #F4F3EC;
  --fs-milk: #FFFDF6;
  --fs-onyx: #111111;
}

#fs-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 17%, rgba(253,166,0,.18), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(1,69,74,.16), transparent 28%),
    linear-gradient(135deg, #fffdf6 0%, #f4f3ec 45%, #fff7e6 100%);
  color: var(--fs-green);
  transition: opacity .45s ease, visibility .45s ease;
}

#fs-preloader::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(circle, rgba(17,17,17,.14) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(253,166,0,.18) 1px, transparent 2px);
  background-size: 34px 34px, 58px 58px;
  animation: fsDust 8s linear infinite;
  opacity: .28;
}

#fs-preloader::after {
  content: "";
  position: absolute;
  width: min(82vw, 600px);
  aspect-ratio: 1;
  border-radius: 999px;
  z-index: -1;
  background:
    conic-gradient(from 215deg,
      rgba(253,166,0,.22),
      rgba(1,69,74,.16),
      rgba(253,166,0,.08),
      rgba(1,69,74,.18),
      rgba(253,166,0,.22));
  filter: blur(34px);
  opacity: .76;
  animation: fsAura 4.8s ease-in-out infinite alternate;
}

.fs-preloader-inner {
  width: min(92vw, 460px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.fs-logo-wrap {
  position: relative;
  width: clamp(132px, 31vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.fs-logo-wrap::before,
.fs-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 1px solid rgba(253,166,0,.42);
  border-top-color: rgba(1,69,74,.82);
  animation: fsRing 2.2s linear infinite;
}

.fs-logo-wrap::after {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(1,69,74,.24);
  border-right-color: rgba(253,166,0,.76);
  animation-duration: 3.4s;
  animation-direction: reverse;
}

.fs-logo-svg {
  width: 80%;
  height: 80%;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(1,69,74,.18));
}

.fs-brand {
  margin: 0;
  font-family: var(--font-bon-foyage), Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 8.5vw, 4.4rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--fs-gold);
  text-shadow:
    0 2px 0 rgba(255,255,255,.7),
    0 8px 18px rgba(17,17,17,.18);
  animation: fsBrandLift 1.8s ease-in-out infinite alternate;
}

.fs-brand span {
  color: var(--fs-green);
}

.fs-tagline {
  margin: 0;
  max-width: 34rem;
  font-family: var(--font-satoshi), Inter, system-ui, sans-serif;
  color: rgba(7,29,43,.78);
  font-size: clamp(.82rem, 2.4vw, 1rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.fs-progress-track {
  width: min(78vw, 330px);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(1,69,74,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.fs-progress-bar {
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fs-green), var(--fs-gold), var(--fs-green));
  animation: fsProgress 1.15s ease-in-out infinite;
}

.fs-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.fs-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fs-gold);
  box-shadow: 0 0 12px rgba(253,166,0,.72);
  animation: fsDot 1s ease-in-out infinite;
}

.fs-dots span:nth-child(2) { animation-delay: .14s; background: var(--fs-green); }
.fs-dots span:nth-child(3) { animation-delay: .28s; }

#fs-preloader.fs-preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes fsRing { to { transform: rotate(360deg); } }
@keyframes fsAura {
  from { transform: scale(.94) rotate(0deg); opacity: .55; }
  to { transform: scale(1.08) rotate(10deg); opacity: .88; }
}
@keyframes fsProgress {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(78%); }
  100% { transform: translateX(250%); }
}
@keyframes fsDot {
  0%, 100% { transform: translateY(0) scale(.75); opacity: .48; }
  50% { transform: translateY(-7px) scale(1); opacity: 1; }
}
@keyframes fsBrandLift {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}
@keyframes fsDust {
  to { transform: translate3d(34px, 34px, 0); }
}

@media (prefers-color-scheme: dark) {
  #fs-preloader {
    background:
      radial-gradient(circle at 20% 18%, rgba(253,166,0,.16), transparent 26%),
      radial-gradient(circle at 80% 20%, rgba(1,69,74,.55), transparent 34%),
      linear-gradient(135deg, #071D2B 0%, #01454A 52%, #091115 100%);
  }
  .fs-tagline { color: rgba(255,253,246,.82); }
  .fs-brand span { color: #FFFDF6; }
  .fs-progress-track { background: rgba(255,255,255,.18); }
}

@media (prefers-reduced-motion: reduce) {
  #fs-preloader::before,
  #fs-preloader::after,
  .fs-logo-wrap::before,
  .fs-logo-wrap::after,
  .fs-brand,
  .fs-progress-bar,
  .fs-dots span {
    animation: none !important;
  }
}
