/**
 * HyzenPro Custom Cursor
 * 
 * Dual-circle cursor with smooth follower effect
 * Automatically hides on touch devices
 * 
 * @package HyzenPro
 * @since 1.0.0
 */

/* ==========================================================================
   Custom Cursor Styles
   ========================================================================== */

.hyzen-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-white, #ffffff);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.hyzen-cursor.active {
    opacity: 1;
}

.hyzen-cursor-follower {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.hyzen-cursor-follower.active {
    opacity: 1;
}

/* Cursor states */
.hyzen-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-orange, #ff6b35);
}

.hyzen-cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.hyzen-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hide on touch devices */
@media (pointer: coarse) {

    .hyzen-cursor,
    .hyzen-cursor-follower {
        display: none !important;
    }
}

/* Hide on mobile */
@media (max-width: 768px) {

    .hyzen-cursor,
    .hyzen-cursor-follower {
        display: none !important;
    }
}

/* Disable cursor when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

    .hyzen-cursor,
    .hyzen-cursor-follower {
        display: none !important;
    }
}

/* ==========================================================================
   Body cursor override
   ========================================================================== */

body.hyzen-custom-cursor-enabled {
    cursor: none;
}

body.hyzen-custom-cursor-enabled a,
body.hyzen-custom-cursor-enabled button,
body.hyzen-custom-cursor-enabled input[type="submit"],
body.hyzen-custom-cursor-enabled [role="button"],
body.hyzen-custom-cursor-enabled .cursor-pointer {
    cursor: none;
}

/* ==========================================================================
   Interactive elements hover state
   ========================================================================== */

body.hyzen-custom-cursor-enabled a:hover~.hyzen-cursor,
body.hyzen-custom-cursor-enabled button:hover~.hyzen-cursor {
    transform: translate(-50%, -50%) scale(1.5);
}