/* Cursor Robot Styles */
.cursor-robot-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
    /* Let mouse clicks pass through */
    z-index: 99999;
    will-change: transform;
    /* Initial state hidden or visible? Visible as per request "follow mouse" */
    display: block;
    mix-blend-mode: normal;
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.robot-body {
    width: 100%;
    height: 100%;
    position: relative;
    /* Add a subtle float animation */
    animation: robotFloat 3s ease-in-out infinite;
}

.robot-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
}

@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Tooltip Bubble */
.robot-tooltip {
    position: absolute;
    top: -40px;
    /* Position above the robot */
    left: 40px;
    /* To the right */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 8px 12px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 210, 255, 0.5);
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transform-origin: bottom left;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 100000;
}

.robot-tooltip.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Hide on Mobile */
@media screen and (max-width: 1024px) {
    .cursor-robot-wrapper {
        display: none !important;
    }
}

/* Robot Hint Bubble - Immersive Mode Reminder */
.robot-hint-bubble {
    position: absolute;
    top: -15px;
    left: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    pointer-events: none;
    z-index: 100001;
    opacity: 0;
    transform: scale(0.8) translateX(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: hintPulse 2s ease-in-out infinite;
}

.robot-hint-bubble.show {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.hint-arrow {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #667eea;
}

@keyframes hintPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.7); }
}
