/* ====================================
   CUSTOM CURSOR STYLES
   ==================================== */

.cursor,
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease;
    display: none;
}

.cursor {
    width: 40px;
    height: 40px;
    background: rgba(127, 90, 240, 0.2);
    border: 2px solid rgba(127, 90, 240, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

/* Hover States */
.cursor--hover {
    width: 60px;
    height: 60px;
    background: rgba(127, 90, 240, 0.1);
    border-color: var(--accent);
    backdrop-filter: blur(10px);
}

.cursor-dot--hover {
    width: 12px;
    height: 12px;
    background: var(--accent-hover);
}

/* Text Hover */
.cursor--text {
    width: 80px;
    height: 30px;
    border-radius: 15px;
    background: rgba(127, 90, 240, 0.1);
}

.cursor-dot--text {
    width: 2px;
    height: 20px;
    border-radius: 1px;
    background: var(--accent);
}

/* Image Hover */
.cursor--image {
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent);
    background: rgba(127, 90, 240, 0.05);
}

.cursor-dot--image {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--accent);
}

/* Click State */
.cursor--click {
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(127, 90, 240, 0.4);
}

.cursor-dot--click {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--accent-hover);
}

/* Loading State */
.cursor--loading {
    animation: cursorPulse 1.5s ease-in-out infinite;
}

.cursor--disabled {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

/* Click Ripple Effect */
.cursor-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9998;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes cursorPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

/* Magnetic Effect Indicators */
.magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid transparent;
    border-radius: inherit;
    opacity: 0;
    transition: all 0.3s ease;
}

.magnetic:hover::before {
    opacity: 0.5;
    border-color: var(--accent);
    animation: magneticPulse 2s ease-in-out infinite;
}

@keyframes magneticPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

/* Hide cursor on mobile devices */
@media (hover: none) {
    .cursor,
    .cursor-dot {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .cursor,
    .cursor-dot {
        transition: opacity 0.1s ease !important;
    }
    
    .cursor-ripple {
        display: none !important;
    }
    
    .magnetic::before {
        display: none !important;
    }
}