/* assets/css/preloader.css - Feminine Handwritten Breathing Preloader */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Parisienne&display=swap');

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 45%, #FAF5FF 0%, #F3E8FF 55%, #E9D5FF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  animation: autoHideOverlay 0s ease 2s forwards;
}

@keyframes autoHideOverlay {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.preloader-overlay.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  user-select: none;
}

/* Ambient Breathing Glow Halo */
.preloader-glow-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 75%);
  filter: blur(35px);
  pointer-events: none;
  animation: haloBreathe 2.4s ease-in-out infinite;
}

/* Handwritten Calligraphy with Breathing (Nəfəs Alıb Vermə) Animation */
.preloader-brand-wrap {
  position: relative;
  z-index: 2;
  animation: textBreathe 2.4s ease-in-out infinite;
}

.preloader-handwriting {
  font-family: 'Parisienne', 'Great Vibes', cursive !important;
  font-size: 64px !important;
  font-weight: 400 !important;
  color: #7E22CE !important;
  letter-spacing: 1px;
  line-height: 1.1 !important;
  text-shadow: 0 4px 20px rgba(126, 34, 206, 0.25);
  margin: 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 50%, #C026D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Breathing Keyframes */
@keyframes textBreathe {
  0% {
    transform: scale(0.92);
    opacity: 0.78;
    filter: drop-shadow(0 2px 8px rgba(126, 34, 206, 0.2));
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 10px 26px rgba(168, 85, 247, 0.6));
  }
  100% {
    transform: scale(0.92);
    opacity: 0.78;
    filter: drop-shadow(0 2px 8px rgba(126, 34, 206, 0.2));
  }
}

@keyframes haloBreathe {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.45;
  }
}

/* Subtle Three-Dot Lavender Pulse */
.preloader-dots-wrap {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.preloader-dots-wrap span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C084FC;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.preloader-dots-wrap span:nth-child(2) {
  animation-delay: 0.2s;
  background: #A855F7;
}

.preloader-dots-wrap span:nth-child(3) {
  animation-delay: 0.4s;
  background: #7E22CE;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}
