/**
 * Custom Cursor CSS for Wolke Consultancy Theme
 */

/* Hide default cursor when custom cursor is active */
body[data-cursor="true"] {
    cursor: none !important;
}

body[data-cursor="true"] a,
body[data-cursor="true"] button,
body[data-cursor="true"] [role="button"],
body[data-cursor="true"] input,
body[data-cursor="true"] textarea,
body[data-cursor="true"] [data-cursor],
body[data-cursor="true"] .btn {
    cursor: none !important;
}

/* Custom cursor styles */
.wolke-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
    opacity: 0;
}

body.cursor-initialized .wolke-cursor {
    opacity: 1;
}

.wolke-cursor.active {
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    mix-blend-mode: difference;
}

.wolke-cursor.-opaque {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: transparent;
    mix-blend-mode: normal;
}

.wolke-cursor.-lg {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: transparent;
    mix-blend-mode: normal;
}

.wolke-cursor.-sm {
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-color: transparent;
}

.wolke-cursor.-hidden {
    opacity: 0;
}

/* Cursor text styles */
.wolke-cursor-text {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wolke-cursor-text.active {
    opacity: 1;
}

/* Media query to disable custom cursor on mobile devices */
@media (max-width: 991px) {
    body[data-cursor="true"] {
        cursor: auto !important;
    }
    
    body[data-cursor="true"] a,
    body[data-cursor="true"] button,
    body[data-cursor="true"] [role="button"],
    body[data-cursor="true"] input,
    body[data-cursor="true"] textarea,
    body[data-cursor="true"] [data-cursor],
    body[data-cursor="true"] .btn {
        cursor: auto !important;
    }
    
    .wolke-cursor,
    .wolke-cursor-text {
        display: none;
    }
}
