/* =========================
   SAFE LOGO PRELOADER (DNNGo compatible)
   ساختار اصلی page-loaders حفظ شده
========================= */

.page-loaders {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  height: 100vh;
  width: 100vw;
  background-color: #f68422;
}

.loading-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  gap: 14px;
}

/* نسخه لوگودار */
.loading-center--logo {
  gap: 16px;
}

.logo-loader-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-loader-wrap img {
  width: 150px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.96;
}

/* هاله ملایم */


/* رینگ چرخان */
.logo-loader-ring {
  position: absolute;
  width: 240px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.logo-loader-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.95);
  border-right-color: rgba(255, 255, 255, 0.25);
  animation: ringSpin 1.1s linear infinite;
}

.logo-loader-ring::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: ringSpinReverse 2.6s linear infinite;
}

/* متن */
.loading-center span {
  font-size: 15px;
  color: currentColor;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

/* انیمیشن‌ها */
@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* موبایل */
@media (max-width: 576px) {
  .logo-loader-wrap {
    width: 90px;
    height: 90px;
  }

  .logo-loader-ring {
    width: 175px;
    height: 195px;
  }

  .loading-center span {
    font-size: 13px;
  }

  .logo-loader-wrap img {
    width: 76px;
  }
}
