/* Watt AI Cursor Animation System
   Creates a visual fake cursor that animates to clicked elements */

.watt-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.watt-cursor.visible {
    opacity: 1;
}

/* Cursor pointer SVG */
.watt-cursor-pointer {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Blue glow effect around cursor */
.watt-cursor-glow {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    animation: watt-cursor-pulse 1.5s ease-in-out infinite;
}

@keyframes watt-cursor-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Click ripple effect */
.watt-cursor-ripple {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 99998;
    border: 2px solid var(--mango-400);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.watt-cursor-ripple.active {
    animation: watt-ripple 0.6s ease-out forwards;
}

@keyframes watt-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Trail effect (optional, adds a subtle trail behind cursor) */
.watt-cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 99997;
    background: var(--mango-400);
    border-radius: 50%;
    opacity: 0;
}

.watt-cursor-trail.active {
    animation: watt-trail-fade 0.4s ease-out forwards;
}

@keyframes watt-trail-fade {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Highlight effect on target element */
.watt-target-highlight {
    outline: 2px solid var(--mango-400) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease;
}

/* Label showing what Watt is about to click */
.watt-action-label {
    position: fixed;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.watt-action-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.watt-action-label::before {
    content: '✨ ';
}
