/**
 * Cursor Effects CSS
 * Additional styling for mouse cursor effects
 */

/* Hide default cursor on elements that have magnetic behavior */
.magnetic,
[data-magnetic] {
    cursor: none;
}

/* Custom cursor styles for different effects */
.cursor-trail-active {
    cursor: none;
}

/* Smooth transitions for magnetic elements */
.magnetic,
[data-magnetic] {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Hover effects for magnetic elements */
.magnetic:hover,
[data-magnetic]:hover {
    transform: scale(1.02);
}

/* Disable cursor effects on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .magnetic,
    [data-magnetic] {
        cursor: auto;
        transform: none !important;
    }
    
    .cursor-trail-active {
        cursor: auto;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .magnetic,
    [data-magnetic] {
        transition: none;
        transform: none !important;
    }
    
    .cursor-trail-active {
        cursor: auto;
    }
}

/* Optional: Add a subtle glow effect to magnetic elements */
.magnetic-glow {
    position: relative;
}

.magnetic-glow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.magnetic-glow:hover::before {
    opacity: 1;
}

/* Custom cursor dot (optional) */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 182, 193, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    mix-blend-mode: multiply;
}

.custom-cursor.hover {
    transform: scale(2);
    background: rgba(173, 216, 230, 0.8);
}

/* Hide custom cursor on mobile */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
} 