/* ==========================================================================
   Custom Cursor CSS - Sokrat Development
   Interactive Cursor Effects
   ========================================================================== */

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    
    a, button, input, textarea, select, [role="button"] {
        cursor: none;
    }
}

/* Cursor Elements */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: var(--z-max);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-400);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: calc(var(--z-max) - 1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    opacity: 0.5;
}

/* Cursor Hover States */
.cursor-hover .cursor-dot {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--accent-400);
    background: rgba(6, 182, 212, 0.1);
}

/* Cursor Click State */
.cursor-click .cursor-dot {
    width: 6px;
    height: 6px;
}

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

/* Cursor Text State (on text elements) */
.cursor-text .cursor-dot {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--text-primary);
}

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

/* Cursor Blend Mode for Light Theme */
[data-theme="light"] .cursor-dot {
    mix-blend-mode: normal;
    background: var(--primary-600);
}

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

/* Hide custom cursor on mobile */
@media (hover: none) or (pointer: coarse) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
    
    body,
    a, button, input, textarea, select, [role="button"] {
        cursor: auto;
    }
}

/* Cursor Trail Effect (Optional) */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: calc(var(--z-max) - 2);
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}
