/* ========================================
   Custom Cursor Styles
   ======================================== */

/* Custom cursor disabled - using default system cursor */
/* Hide default cursor on desktop */
/* @media (pointer: fine) {
    body {
        cursor: none;
    }

    a, button, input, textarea, select {
        cursor: none;
    }
} */

/* Custom Cursor Dot - Hidden */
.cursor-dot {
    display: none;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease, background-color 0.2s ease;
    mix-blend-mode: difference;
}

/* Custom Cursor Outline - Hidden */
.cursor-outline {
    display: none;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease,
                border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

/* Cursor States */
body.cursor-hover .cursor-dot {
    transform: scale(2);
    background: var(--accent-success);
}

body.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--accent-success);
    opacity: 0.8;
}

body.cursor-click .cursor-dot {
    transform: scale(0.5);
}

body.cursor-click .cursor-outline {
    width: 30px;
    height: 30px;
}

/* Cursor Hidden State */
.cursor-dot.hidden,
.cursor-outline.hidden {
    opacity: 0;
}

/* Disable on Mobile/Touch Devices */
@media (pointer: coarse) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-outline {
        transition: none;
    }
}

/* Interactive Elements Hover Effect */
a:hover, button:hover,
input:hover, textarea:hover,
select:hover, .btn:hover {
    /* Add subtle scale for feedback since cursor changes */
}

/* Link Trail Effect */
.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: trail-fade 0.5s ease-out;
}

@keyframes trail-fade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Theme-specific Cursor Colors */
[data-theme="light"] .cursor-dot {
    background: var(--accent-primary);
}

[data-theme="light"] .cursor-outline {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .cursor-dot {
    background: var(--accent-secondary);
}

[data-theme="dark"] .cursor-outline {
    border-color: var(--accent-secondary);
}
