/* Figma/Mac Style Custom Cursor - Transformation Edition */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 1000000;
    transform: translate(0, 0); 
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.3s ease,
                width 0.3s ease,
                height 0.3s ease;
    opacity: 0;
    will-change: transform, left, top;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
                background-color 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.3s ease;
    will-change: width, height, left, top;
}

/* --- HOVER STATE: Keep the same arrow cursor, just expand the ring --- */

.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.6);
    border-width: 1.5px;
}

/* Difference blend mode for that "Pro" feeling when hovering over text/buttons */
.cursor-hover-active .cursor-outline {
    mix-blend-mode: difference;
    background-color: white;
    border: none;
    width: 90px;
    height: 90px;
}

/* Clicking state - Ultra snappy */
.cursor-clicking .custom-cursor {
    transform: scale(0.5) !important;
}

.cursor-clicking .cursor-outline {
    width: 20px !important;
    height: 20px !important;
    background-color: rgba(59, 130, 246, 0.6) !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
}

/* Hide default cursor - except on drag elements */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
    /* Allow drag cursor to show on drag-handle so users know they can drag */
    .drag-handle,
    .drag-handle * {
        cursor: grab !important;
    }
    .drag-handle:active,
    .drag-handle:active * {
        cursor: grabbing !important;
    }
    /* Sortable.js drag clone should show grabbing cursor */
    .sortable-drag,
    .sortable-drag * {
        cursor: grabbing !important;
    }
}

@media (pointer: coarse) {
    .custom-cursor, .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}
