/* Cursor FX - استایل فرانت‌اند */

/* مخفی‌کردن نشانگر پیش‌فرض سیستم (اختیاری) */
html.cfx-hide-native,
html.cfx-hide-native * {
	cursor: none !important;
}

/* نقطه مرکزی که سریع موس را دنبال می‌کند */
.cfx-dot {
	position: fixed;
	top: 0;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4f7cff;
	pointer-events: none;
	z-index: 999999;
	transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease;
	will-change: transform;
}

/* حلقه بیرونی که با تاخیر نرم دنبال می‌کند */
.cfx-ring {
	position: fixed;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	border: 2px solid #4f7cff;
	border-radius: 50%;
	pointer-events: none;
	z-index: 999998;
	opacity: 0.6;
	transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border-width 0.25s ease;
	will-change: transform;
}

/* حالت هاور روی عناصر تعاملی: حلقه بزرگ و پرشده می‌شود */
html.cfx-hovering .cfx-ring {
	width: 64px;
	height: 64px;
	opacity: 0.25;
	background: currentColor;
}

html.cfx-hovering .cfx-dot {
	width: 4px;
	height: 4px;
}

/* افکت کلیک: کوچک‌شدن آنی حلقه */
html.cfx-down .cfx-ring {
	width: 30px;
	height: 30px;
	opacity: 0.9;
}

/* بوم ذرات - پشت تمام محتوا */
.cfx-particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

/* عناصر پارالکس روان باشند */
.cfx-parallax {
	will-change: transform;
}

/* اطمینان از احترام به کاهش حرکت حتی اگر جاوااسکریپت اجرا شود */
@media (prefers-reduced-motion: reduce) {
	.cfx-dot,
	.cfx-ring,
	.cfx-particles {
		display: none !important;
	}
}
