/* ===== BEAUTIFUL WALKING CAT STYLES ===== */

.beautiful-cat {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.cat-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: catEntry 2.5s ease-out forwards, catFloat 4s ease-in-out infinite 2.5s;
}

.cat-emoji {
    font-size: 64px;
    line-height: 1;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    animation: catBreathe 3s ease-in-out infinite;
}

.beautiful-cat:hover .cat-emoji {
    font-size: 72px;
    animation: catExcited 0.6s ease-in-out infinite;
}

.beautiful-cat.walking .cat-emoji {
    animation: catWalk 1.2s ease-in-out infinite, catBreathe 3s ease-in-out infinite;
}

.beautiful-cat.happy .cat-emoji {
    animation: catJump 0.8s ease-out, catBreathe 3s ease-in-out infinite 0.8s;
}

.cat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, rgba(255, 105, 180, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

.beautiful-cat:hover .cat-glow {
    background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, rgba(255, 105, 180, 0.3) 40%, transparent 70%);
    animation: glowExcited 0.6s ease-in-out infinite;
}

.cat-message {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    color: #FF69B4;
    padding: 12px 18px;
    border-radius: 20px;
    border: 2px solid #FF69B4;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(255, 105, 180, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    min-width: 100px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cat-message::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FF69B4;
}

.cat-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
}

.beautiful-cat:hover .cat-message,
.beautiful-cat.speaking .cat-message {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.message-text {
    display: block;
    animation: textShimmer 2s ease-in-out infinite;
}

/* ===== BEAUTIFUL CAT ANIMATIONS ===== */

@keyframes catEntry {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    80% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.95;
        filter: blur(1px);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes catFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(1deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

@keyframes catBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes catWalk {
    0%, 100% {
        transform: translateY(0px) scaleX(1);
    }
    25% {
        transform: translateY(-6px) scaleX(1.05);
    }
    50% {
        transform: translateY(-3px) scaleX(1);
    }
    75% {
        transform: translateY(-9px) scaleX(0.95);
    }
}

@keyframes catExcited {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(3deg);
    }
    50% {
        transform: scale(1.05) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(-3deg);
    }
}

@keyframes catJump {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    30% {
        transform: translateY(-25px) scale(1.15);
    }
    60% {
        transform: translateY(-15px) scale(1.1);
    }
}

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

@keyframes glowExcited {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}

@keyframes textShimmer {
    0%, 100% {
        color: #FF69B4;
    }
    50% {
        color: #FF1493;
    }
}

@keyframes heartFloat {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8) translateY(-80px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cat-emoji {
        font-size: 56px;
    }
    
    .beautiful-cat:hover .cat-emoji {
        font-size: 64px;
    }
    
    .cat-message {
        font-size: 12px;
        padding: 10px 15px;
        min-width: 80px;
    }
    
    .cat-glow {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .cat-emoji {
        font-size: 48px;
    }
    
    .beautiful-cat:hover .cat-emoji {
        font-size: 56px;
    }
    
    .cat-message {
        font-size: 11px;
        padding: 8px 12px;
        min-width: 70px;
    }
    
    .cat-glow {
        width: 70px;
        height: 70px;
    }
}

/* Performance Optimizations */
.beautiful-cat * {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}