/* ============================================================
   CUSTOM CURSOR — Daheen Raj C.H.E.S Trust
   Blend-mode circle cursor (gold dot + trailing ring)
   ============================================================ */

/* Hide default cursor everywhere (desktop only — see JS for mobile check) */
body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active .filter-btn,
body.custom-cursor-active .gallery-tile,
body.custom-cursor-active .nav-link {
    cursor: none !important;
}

.cc-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}

/* Small solid dot — snappy, follows mouse closely */
.cc-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #A97142; /* gold */
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1),
                height 0.25s cubic-bezier(0.16,1,0.3,1),
                background 0.25s ease;
    will-change: transform;
}

/* Larger ring — trails with slight delay, blends with background */
.cc-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    background: transparent;
    pointer-events: none;
    z-index: 99998;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16,1,0.3,1),
                height 0.35s cubic-bezier(0.16,1,0.3,1),
                border-color 0.35s ease,
                opacity 0.3s ease;
    will-change: transform;
}

/* ===== HOVER STATE — on links, buttons, clickable cards ===== */
body.cc-hovering .cc-dot {
    width: 0;
    height: 0;
    background: transparent;
}

body.cc-hovering .cc-ring {
    width: 64px;
    height: 64px;
    border-color: #A97142;
    border-width: 1px;
    background: rgba(169, 113, 66, 0.08);
}

/* ===== CLICK STATE — quick squeeze feedback ===== */
body.cc-clicking .cc-ring {
    width: 30px;
    height: 30px;
}

/* ===== TEXT HOVER STATE — over headings/paragraphs, ring shows "drag" hint ===== */
body.cc-text .cc-ring {
    width: 4px;
    height: 44px;
    border-radius: 2px;
    border-color: #A97142;
}
body.cc-text .cc-dot {
    width: 0;
    height: 0;
}

/* Hide custom cursor on touch devices automatically (handled in JS too) */
@media (hover: none), (pointer: coarse) {
    .cc-dot, .cc-ring { display: none !important; }
    body.custom-cursor-active,
    body.custom-cursor-active a,
    body.custom-cursor-active button {
        cursor: auto !important;
    }
}
