
/* ===================================
   SMOOTH DARK & RED CUSTOM CURSOR
=================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.custom-cursor.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Outer ring */
.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    border: 2px solid #ff2525;
    border-radius: 50%;
    background: rgba(225, 6, 0, 0.08);
    box-shadow:
        0 0 8px rgba(255, 25, 25, 0.35),
        inset 0 0 8px rgba(255, 25, 25, 0.08);
    transform: translate(-50%, -50%);
    transition:
        width 0.25s ease,
        height 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Center dot: high contrast */
.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff2525;
    border: 1px solid #ffffff;
    box-shadow:
        0 0 0 2px rgba(15, 15, 15, 0.85),
        0 0 8px rgba(255, 25, 25, 0.8);
    transform: translate(-50%, -50%);
    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease;
}

/* Interactive elements */
.custom-cursor.is-hovering .cursor-ring {
    width: 58px;
    height: 58px;
    background: rgba(225, 6, 0, 0.16);
    border-color: #ff2525;
    box-shadow: 0 0 18px rgba(255, 25, 25, 0.45);
}

.custom-cursor.is-hovering .cursor-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
}

/* Image / draggable elements */
.custom-cursor.is-dragging .cursor-ring {
    width: 64px;
    height: 64px;
    background: #e10600;
    border-color: #ffffff;
    box-shadow: 0 0 22px rgba(225, 6, 0, 0.65);
}

.custom-cursor.is-dragging .cursor-dot {
    background: #ffffff;
    border-color: #e10600;
}

/* Drag label */
.cursor-label {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 64px;
    text-align: center;
    color: #ffffff;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.custom-cursor.is-dragging .cursor-label {
    opacity: 1;
}

/* Typing / text input mode */
.custom-cursor.is-typing .cursor-ring {
    width: 3px;
    height: 27px;
    border: 0;
    border-radius: 2px;
    background: #ff2525;
    box-shadow: 0 0 10px rgba(255, 25, 25, 0.55);
}

.custom-cursor.is-typing .cursor-dot {
    width: 4px;
    height: 4px;
    background: #ffffff;
}

/* Hide the native cursor only on mouse-based devices */
@media (hover: hover) and (pointer: fine) {
    html.custom-cursor-enabled,
    html.custom-cursor-enabled body,
    html.custom-cursor-enabled body a,
    html.custom-cursor-enabled body button,
    html.custom-cursor-enabled body img,
    html.custom-cursor-enabled body input,
    html.custom-cursor-enabled body textarea,
    html.custom-cursor-enabled body select {
        cursor: none !important;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cursor-ring,
    .cursor-dot,
    .cursor-label,
    .custom-cursor {
        transition: none !important;
    }
}
