/* Dynamic Brown Cursor Styles */

/* Keep default cursor but add custom cursor elements */
body {
    cursor: auto;
}

/* Main cursor styles */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Normal cursor with dynamic brown color */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #6F4E37; /* Coffee brown */
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    box-shadow: 0 0 10px rgba(111, 78, 55, 0.5);
}

/* Outer ring for the cursor */
.cursor-ring {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(111, 78, 55, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}

/* Cursor style for clickable elements */
.cursor-dot.on-clickable {
    width: 12px;
    height: 12px;
    background-color: #D2691E; /* Sienna - darker brown */
    animation: pulseEffect 1.5s infinite alternate;
}

.cursor-ring.on-clickable {
    width: 32px;
    height: 32px;
    border-color: rgba(210, 105, 30, 0.7);
    animation: pulseRing 1.5s infinite alternate;
}

/* Coffee ripple effect for clicks */
.cursor-click-ripple {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(210, 105, 30, 0.4);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
}

.cursor-click-ripple.active {
    animation: clickRipple 0.8s ease-out forwards;
}

/* Animations */
@keyframes pulseEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(210, 105, 30, 0.5);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 15px rgba(210, 105, 30, 0.7);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes clickRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Responsive - disable custom cursor on mobile/touch devices */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .custom-cursor, .cursor-click-ripple {
        display: none;
    }
}
