/* نوار پیشرفت ناوبری آنی + حالت soft-nav */

#atlasshop-nav-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 1000001;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

#atlasshop-nav-progress.is-active {
	opacity: 1;
	visibility: visible;
}

#atlasshop-nav-progress.is-hidden {
	opacity: 0;
	visibility: hidden;
}

#atlasshop-nav-progress .atlasshop-nav-progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #1e3a5f, #3b82c4, #7dd3fc);
	border-radius: 0 2px 2px 0;
	transform-origin: left center;
}

#atlasshop-nav-progress.is-active .atlasshop-nav-progress__bar {
	animation: atlasshop-nav-progress-run 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#atlasshop-nav-progress.is-done .atlasshop-nav-progress__bar {
	animation: none;
	width: 100%;
	opacity: 0;
	transition: opacity 0.25s ease;
}

@keyframes atlasshop-nav-progress-run {
	0% {
		width: 0;
	}
	20% {
		width: 35%;
	}
	55% {
		width: 68%;
	}
	100% {
		width: 88%;
	}
}

/* ادمین: وقتی soft-nav فعال است، blur سنگین لودینگ قدیمی کمتر دیده شود */
html.atlasshop-soft-nav-active #atlasshop-admin-loading {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

html.atlasshop-soft-nav-active #wpwrap {
	filter: none !important;
}

/* فرانت: لینک‌هایی که نباید prerender شوند */
a.no-prerender,
a.no-prefetch {
	/* فقط کلاس معنایی */
}
