/* ========================================
   CUSTOM CURSOR STYLES
   Neural dot with glow trail
   ======================================== */

/* Hide default cursor on interactive elements */
a,
button,
input,
textarea,
select,
[role="button"],
.clickable {
    cursor: none !important;
}

/* Main cursor dot */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647 !important;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.2s, height 0.2s, background 0.2s;
    box-shadow: var(--shadow-glow-md);
    /* Removed mix-blend-mode to fix scroll issues */
}

/* Cursor ring */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647 !important;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
    opacity: 0.5;
}

/* Cursor states */
.cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.3);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
    opacity: 1;
}

.cursor.click {
    transform: translate3d(-50%, -50%, 0) scale(0.8);
}

.cursor-ring.click {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    opacity: 0;
}

/* Cursor trail particles */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: calc(var(--z-cursor) - 1);
    opacity: 0.6;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.3s;
}

/* Text cursor mode */
.cursor.text {
    width: 4px;
    height: 30px;
    border-radius: 2px;
    background: var(--accent);
}

.cursor-ring.text {
    opacity: 0;
}

/* Disabled state */
.cursor.disabled {
    background: var(--text-muted);
    box-shadow: none;
}

/* Hide on mobile */
@media (max-width: 768px) {

    .cursor,
    .cursor-ring,
    .cursor-trail {
        display: none !important;
    }
}