/* Lawnmower Helper - Clippy-style assistant */
.lawnmower-helper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100000;
    display: none; /* Hidden on mobile by default */
    opacity: 0;
    visibility: hidden;
}

/* Show only on desktop */
@media (min-width: 769px) {
    .lawnmower-helper {
        display: block;
    }
}

.lawnmower-helper.animate-entrance {
    opacity: 1;
    visibility: visible;
}

.lawnmower-character {
    width: 120px;
    height: 120px;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    display: block;
    transition: transform 0.3s ease;
    transform: scaleX(-1);
}

.lawnmower-character:hover {
    transform: scaleX(-1) scale(1.05);
}

/* Simple idle animation */
.lawnmower-character.idle {
    animation: idleBounce 2s ease-in-out infinite;
}

/* Entrance animation */
@keyframes slideInBounce {
    0% {
        transform: translateX(200px) translateY(0) scaleX(-1);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px) translateY(0) scaleX(-1);
        opacity: 1;
    }
    80% {
        transform: translateX(5px) translateY(-5px) scaleX(-1);
    }
    100% {
        transform: translateX(0) translateY(0) scaleX(-1);
    }
}

.lawnmower-helper.animate-entrance .lawnmower-character {
    animation: slideInBounce 0.8s ease-out;
}

/* Idle bounce animation */
@keyframes idleBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scaleX(-1);
    }
    25% {
        transform: translateY(-5px) rotate(1deg) scaleX(-1);
    }
    50% {
        transform: translateY(0) rotate(0deg) scaleX(-1);
    }
    75% {
        transform: translateY(-3px) rotate(-1deg) scaleX(-1);
    }
}

.lawnmower-character.idle {
    animation: idleBounce 2s ease-in-out infinite;
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    bottom: 100px;
    right: 0;
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 20px;
    max-width: 320px;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
}

.speech-bubble.show {
    display: block;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Speech bubble tail */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid white;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -26px;
    right: 37px;
    width: 0;
    height: 0;
    border-left: 23px solid transparent;
    border-right: 23px solid transparent;
    border-top: 23px solid #333;
}

.speech-bubble h3 {
    margin: 0 0 10px 0;
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
}

.speech-bubble p {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.speech-bubble ul {
    margin: 10px 0;
    padding-left: 20px;
}

.speech-bubble li {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
}

.speech-bubble-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    transition: background 0.2s;
}

.speech-bubble-close:hover {
    background: #c92a2a;
}

.speech-bubble .cta-button {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.speech-bubble .cta-button:hover {
    background: #1e7e34;
}

/* Sprite sheet animations are defined above */
