/* =========================================================
   Pweb Custom Cursor - استایل افکت موس سفارشی
   فقط زمانی فعال است که body کلاس pweb-cursor-active داشته باشد
   (یعنی روی دستگاه‌های دارای موس واقعی، نه تاچ)
   ========================================================= */

body.pweb-cursor-active,
body.pweb-cursor-active * {
    cursor: none !important;
}

#pweb-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: rgba(130, 100, 255, 0.95);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transition: width 0.15s ease, height 0.15s ease, opacity 0.2s ease;
    box-shadow: 0 0 10px rgba(100, 80, 240, 0.8);
    will-change: transform;
}

#pweb-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(130, 100, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    opacity: 0;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

#pweb-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(80, 60, 240, 0.10), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999997;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.pweb-cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999996;
    background: rgba(110, 85, 255, 0.45);
    will-change: transform;
}

/* حالت کلیک: دات کوچک‌تر، حلقه بزرگ‌تر */
#pweb-cursor-dot.pweb-cursor-clicking {
    width: 7px;
    height: 7px;
}

#pweb-cursor-ring.pweb-cursor-clicking {
    width: 46px;
    height: 46px;
}

/* حالت هاور روی لینک/دکمه: حلقه بزرگ‌تر و پررنگ‌تر */
#pweb-cursor-ring.pweb-cursor-hover {
    width: 54px;
    height: 54px;
    border-color: rgba(130, 100, 255, 0.9);
}

/* روی دستگاه‌های تاچ، حتی اگر به اشتباه فعال شود، مخفی بماند */
@media (hover: none), (pointer: coarse) {
    #pweb-cursor-dot,
    #pweb-cursor-ring,
    #pweb-cursor-glow,
    .pweb-cursor-trail {
        display: none !important;
    }
    body.pweb-cursor-active,
    body.pweb-cursor-active * {
        cursor: auto !important;
    }
}
