/* Hide default cursor only on body to ensure UI elements are still usable if JS fails,
   but for a full immersive effect we usually hide it.
   For now, we will hide it on the body but ensure the custom cursor is on top.
*/
body {
    /* cursor: none; */
}

a,
button,
input,
textarea,
select,
.mep-hoverable {
    /* cursor: none; */
    /* Ensure system cursor is hidden on interactive elements too */
}

.mep-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    /* Key for the 'mask' effect color inversion */
    transition: transform 0.1s ease;
}

.mep-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    /* Subtle styling */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

/* Mask Effect State */
.mep-cursor-follower.is-active {
    width: 80px;
    height: 80px;
    background: #fff;
    /* Fill with white to invert background with difference blend mode */
    border-color: transparent;
    border-color: transparent;
    opacity: 1;
}

/* Header Specific Hover State - Smaller Circle */
.mep-cursor-follower.is-header-hover.is-active {
    width: 30px;
    height: 30px;
}

/* Image Text State */
.mep-cursor-follower::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.mep-cursor-follower.is-image-hover {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque for readability */
    mix-blend-mode: normal;
    /* Normal blend mode for image text readability or keep difference if preferred */
    border: none;
}

.mep-cursor-follower.is-image-hover::after {
    content: 'VIEW';
    opacity: 1;
}

body.mep-dark-mode .mep-cursor,
body.mep-dark-mode .mep-cursor-follower {
    background: #fff;
    border-color: #fff;
}