/* SPA progress + transitions */
#spa-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 2000;
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--brand, #100dd1), transparent);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#spa-progress.is-active {
  opacity: 1;
  animation: spaProgress 1.1s ease-in-out infinite;
}

@keyframes spaProgress {
  0% { transform: scaleX(0.15); opacity: 0.55; }
  50% { transform: scaleX(0.7); opacity: 1; }
  100% { transform: scaleX(0.2); opacity: 0.7; }
}

#spa-root {
  min-height: 40vh;
  /* هرگز transform روی spa-root نگذار — هدر fixed را از viewport جدا می‌کند */
  transform: none !important;
  filter: none;
  perspective: none;
}

/* فقط بدنه صفحه فید شود؛ هدر ثابت بماند */
.spa-enabled #spa-root.spa-enter > .page-content-wrapper {
  animation: spaContentFade 0.16s ease;
}

@keyframes spaContentFade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* جلوگیری از انیمیشن نرم height/top هنگام تعویض هدر در SPA */
.spa-enabled .header-area {
  transition: none !important;
  -webkit-transition-duration: 0ms !important;
  -o-transition-duration: 0ms !important;
  transition-duration: 0ms !important;
}

.footer-nav-area .suha-footer-nav ul li.is-active a {
  opacity: 1 !important;
  font-weight: 700;
}

.footer-nav-area .suha-footer-nav ul li.is-active a i {
  transform: translateY(-1px);
}
