/* ========================================
   مؤشر الماوس المخصص - نمط احترافي متناسق
   ======================================== */

/* إخفاء المؤشر الافتراضي */
* {
    cursor: none !important;
}

/* المؤشر الرئيسي */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 165, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

/* المؤشر التابع (الدائرة الخارجية) - معطل */
.custom-cursor-follower {
    display: none !important;
}

/* عند التمرير على العناصر التفاعلية */
body.cursor-hover .custom-cursor {
    transform: scale(2);
    background: linear-gradient(135deg, #4A8FE7, #2B59C3);
    box-shadow: 0 0 30px rgba(74, 143, 231, 0.8), 0 0 50px rgba(43, 89, 195, 0.4);
}

/* عند النقر بالزر الأيسر */
body.cursor-click .custom-cursor {
    transform: scale(0.7);
}

/* عند النقر بالزر الأوسط (Middle Click) */
body.cursor-middle .custom-cursor {
    transform: scale(2.5);
    background: linear-gradient(135deg, #2B59C3, #1A1A1A);
    box-shadow: 0 0 30px rgba(43, 89, 195, 0.9), 0 0 60px rgba(26, 26, 26, 0.4);
    opacity: 0.9;
}

/* تأثير النبض للمؤشر */
@keyframes cursorPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 165, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 165, 0, 0.8), 0 0 90px rgba(255, 215, 0, 0.5);
    }
}

.custom-cursor {
    animation: cursorPulse 2s ease-in-out infinite;
}

/* تأثير خاص للروابط */
body.cursor-link .custom-cursor {
    background: linear-gradient(135deg, #2B59C3, #4A8FE7);
    transform: scale(1.8);
    box-shadow: 0 0 25px rgba(43, 89, 195, 0.8), 0 0 45px rgba(74, 143, 231, 0.5);
}

/* تأثير خاص للأزرار */
body.cursor-button .custom-cursor {
    background: linear-gradient(135deg, #2B59C3, #4A8FE7);
    transform: scale(1.9);
    box-shadow: 0 0 25px rgba(43, 89, 195, 0.9), 0 0 45px rgba(74, 143, 231, 0.6);
}

/* تأثير خاص للحقول النصية */
body.cursor-text .custom-cursor {
    width: 2px;
    height: 20px;
    border-radius: 2px;
    background: #1A1A1A;
    box-shadow: 0 0 8px rgba(26, 26, 26, 0.4);
}

/* تأثير خاص لقوائم الاختيار (Select) */
body.cursor-select .custom-cursor {
    background: linear-gradient(135deg, #4A8FE7, #2B59C3);
    transform: scale(1.8);
    box-shadow: 0 0 25px rgba(74, 143, 231, 0.8), 0 0 45px rgba(43, 89, 195, 0.5);
}

/* تأثير عجلة الماوس (Scroll) */
body.cursor-scrolling .custom-cursor {
    transform: scale(1.5);
    background: linear-gradient(135deg, #4A8FE7, #2B59C3);
    box-shadow: 0 0 30px rgba(74, 143, 231, 0.9), 0 0 55px rgba(43, 89, 195, 0.6);
    animation: scrollPulse 0.3s ease-out;
}

@keyframes scrollPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(2);
    }
    100% {
        transform: scale(1.5);
    }
}

/* إخفاء المؤشر عند الخروج من الصفحة */
body.cursor-hidden .custom-cursor {
    opacity: 0;
}

/* تحسينات للأجهزة اللوحية والموبايل */
@media (max-width: 1024px) {
    * {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none !important;
    }
}

/* تحسينات للأداء */
.custom-cursor {
    will-change: transform;
    backface-visibility: hidden;
}
