/* Hide the default cursor for the entire page */
body {
    cursor: none;
}

/* Style the custom cursor element */
.cursor {
    display: block;
    height: 28px;
    width: 28px;
    z-index: 2147483647;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    will-change: transform, opacity;
    opacity: 0;
    transition: transform 0.05s ease-out, opacity 0.2s ease-out;
}

/* Style the dot itself */
.cursor__default {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: #d4af37; /* Gold color */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-out;
}

/* Add a hover effect for links */
body:has(a:hover) .cursor__default {
    transform: scale(2.5);
    background-color: rgba(212, 175, 55, 0.5);
}

a,
button {
    cursor: pointer !important;
}

/* Hide custom cursor when hovering over the WordPress admin bar */
body:has(#wpadminbar:hover) .cursor {
    opacity: 0 !important;
}

/* Ensure default cursor shows over the admin bar */
#wpadminbar {
    cursor: auto !important;
}
