/**
 * Cursor Follower & Glitter Particles Trail Styles
 * Theme Color Accent: #ef7f1a (Orange) & Warm Golden Highlights
 *
 * @package Krishna_Overseas
 */

/* Hide native custom elements on touch devices */
@media (pointer: coarse) {
    .krishna-cursor-dot,
    .krishna-cursor-ring,
    #krishna-glitter-canvas {
        display: none !important;
    }
}

/* Glitter Canvas: Full viewport, transparent, pointer-events none */
#krishna-glitter-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999998;
    background: transparent;
}

/* Center Cursor Dot */
.krishna-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--krishna-primary, #ef7f1a);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000000;
    transform: translate(-50%, -50%);
    opacity: 0;
    box-shadow: 0 0 8px rgba(239, 127, 26, 0.8), 0 0 14px rgba(239, 127, 26, 0.4);
    transition: opacity 0.25s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
    will-change: transform, left, top;
}

.krishna-cursor-dot.is-visible {
    opacity: 1;
}

.krishna-cursor-dot.is-hovering {
    transform: translate(-50%, -50%) scale(0.6);
    background-color: #ffffff;
}

/* Outer Fluid Cursor Ring */
.krishna-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.8px solid var(--krishna-primary, #ef7f1a);
    background-color: rgba(239, 127, 26, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    opacity: 0;
    box-shadow: 0 0 10px rgba(239, 127, 26, 0.2);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s ease,
                background-color 0.25s ease,
                box-shadow 0.25s ease,
                opacity 0.25s ease;
    will-change: transform, left, top, width, height;
}

.krishna-cursor-ring.is-visible {
    opacity: 1;
}

/* Expanded state when hovering over links, buttons, inputs, etc. */
.krishna-cursor-ring.is-hovering {
    width: 52px;
    height: 52px;
    border-color: var(--krishna-primary, #ef7f1a);
    background-color: rgba(239, 127, 26, 0.16);
    box-shadow: 0 0 20px rgba(239, 127, 26, 0.4), inset 0 0 10px rgba(239, 127, 26, 0.15);
}

/* Click/Active compression state */
.krishna-cursor-ring.is-clicking {
    width: 24px;
    height: 24px;
    background-color: rgba(239, 127, 26, 0.35);
    box-shadow: 0 0 15px rgba(239, 127, 26, 0.6);
}
