/**
 * Scalator Custom Cursor - CSS
 * Usage: Include this CSS file and add <div class="scalator-cursor"></div> to your HTML
 * Also include the corresponding JavaScript file for functionality
 */

:root {
    /* Scalator Cursor Color Variables */
    --scalator-cursor-border-dark: rgba(93, 135, 54, 0.6);
    --scalator-cursor-border-light: rgba(93, 135, 54, 0.8);
    --scalator-cursor-dot-dark: #5D8736;
    --scalator-cursor-dot-light: #5D8736;
    --scalator-cursor-dot-light-shadow: rgba(93, 135, 54, 0.6);
    --scalator-cursor-expand-border: #5D8736;
}

/* Hide default cursor on desktop */
* {
    cursor: none !important;
}

.scalator-cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 140px;
    height: 140px;
    border: 2px solid var(--scalator-cursor-border-dark);
    border-radius: 50%;
    animation: scalatorCursorAnim 1s infinite alternate;
    pointer-events: none;
    z-index: 99999;
}

.scalator-cursor:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    background: var(--scalator-cursor-dot-dark);
    border-radius: 50%;
    animation: scalatorCursorAnim2 1.5s infinite alternate;
}

.scalator-cursor.expand {
    animation: scalatorCursorAnim3 0.5s forwards;
    border: 1px solid var(--scalator-cursor-expand-border);
}

@keyframes scalatorCursorAnim {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.7);
    }
}

@keyframes scalatorCursorAnim2 {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.4);
    }
}

@keyframes scalatorCursorAnim3 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(2);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Light theme support - add .light-theme class to body */
body.light-theme .scalator-cursor {
    border: 2px solid var(--scalator-cursor-border-light);
}

body.light-theme .scalator-cursor:after {
    background: var(--scalator-cursor-dot-light);
    box-shadow: 0 0 10px var(--scalator-cursor-dot-light-shadow);
}

/* Dark background adaptation (when hovering over pre elements) */
.scalator-cursor.dark-bg {
    border-color: rgba(255, 255, 255, 0.6);
}

.scalator-cursor.dark-bg:after {
    background: #d8f744;
    box-shadow: 0 0 10px rgba(216, 247, 68, 0.4);
}

/* Show default cursor on mobile/tablet */
@media (max-width: 1024px) {
    * {
        cursor: auto !important;
    }
    .scalator-cursor {
        display: none;
    }
}
