/* Mini Explorers Mascot Styles */
.mini-mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-mascot-container:hover {
    transform: scale(1.05);
}

/* Mascot Body */
.mascot-body {
    position: relative;
    width: 85px;
    height: 110px;
    transition: transform 0.3s ease;
}

.mascot-body.bounce {
    animation: mascotBounce 0.8s ease-in-out;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
    75% { transform: translateY(-8px) rotate(-3deg); }
}

/* Astronaut Helmet */
.mascot-helmet {
    position: relative;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 50%;
    margin: 0 auto 5px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        0 0 25px rgba(59, 130, 246, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.helmet-glass {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 50%;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.mascot-face {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.helmet-reflection {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 20px;
    height: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50% 30% 40% 60%;
    filter: blur(1px);
}

/* Eyes */
.mascot-eyes {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.eye {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.eye.blink {
    height: 2px;
    border-radius: 50px;
}

.pupil {
    width: 6px;
    height: 6px;
    background: #1e40af;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Mouth */
.mascot-mouth {
    width: 8px;
    height: 4px;
    background: #fbbf24;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 -2px 0 rgba(245, 158, 11, 0.8);
}

/* Helmet Antenna */
.helmet-antenna {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: linear-gradient(to top, #64748b, #94a3b8);
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.helmet-antenna.bob {
    animation: antennaBob 1s ease-in-out;
}

@keyframes antennaBob {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(15deg); }
}

.antenna-tip {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: antennaTip 2s ease-in-out infinite;
}

@keyframes antennaTip {
    0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.9); }
}

/* Astronaut Suit */
.mascot-suit {
    position: relative;
    width: 65px;
    height: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.suit-chest {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Badge */
.mascot-badge {
    width: 22px;
    height: 16px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
    margin-bottom: 6px;
}

/* Control Panel */
.control-panel {
    display: flex;
    gap: 3px;
}

.control-light {
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.control-light.blink-light {
    opacity: 1;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    transform: scale(1.2);
}

/* Suit Arms */
.suit-arms {
    position: absolute;
    top: 15px;
    width: 100%;
    height: 25px;
}

.arm {
    position: absolute;
    width: 16px;
    height: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.arm-left {
    left: -6px;
    transform: rotate(-15deg);
    animation: armWave 4s ease-in-out infinite;
}

.arm-right {
    right: -6px;
    transform: rotate(15deg);
    animation: armWave 4s ease-in-out infinite reverse;
}

@keyframes armWave {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-25deg); }
}

/* Jetpack */
.mascot-jetpack {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jetpack-flame {
    position: absolute;
    bottom: -12px;
    width: 6px;
    height: 12px;
    background: linear-gradient(to top, #ef4444 0%, #f59e0b 50%, #fbbf24 100%);
    border-radius: 0 0 50% 50%;
    animation: jetpackFlame 0.5s ease-in-out infinite alternate;
}

.jetpack-flame-left {
    left: 6px;
}

.jetpack-flame-right {
    right: 6px;
}

@keyframes jetpackFlame {
    0% { 
        transform: scaleY(1) scaleX(1);
        opacity: 0.8;
    }
    100% { 
        transform: scaleY(1.3) scaleX(0.8);
        opacity: 1;
    }
}
}

/* Greeting Bubble */
.mascot-greeting-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.mascot-greeting-bubble.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.greeting-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e40af;
    text-align: center;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.bubble-tail {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

/* Close Button */
.mascot-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    opacity: 0;
}

.mini-mascot-container:hover .mascot-close-btn {
    opacity: 1;
}

.mascot-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mini-mascot-container {
        bottom: 15px;
        right: 15px;
    }
    
    .mascot-body {
        width: 75px;
        height: 95px;
    }
    
    .mascot-helmet {
        width: 50px;
        height: 50px;
    }
    
    .mascot-suit {
        width: 60px;
        height: 35px;
    }
    
    .mascot-jetpack {
        width: 25px;
        height: 18px;
    }
    
    .jetpack-flame {
        width: 5px;
        height: 10px;
    }
    
    .mascot-greeting-bubble {
        min-width: 180px;
        padding: 10px 14px;
    }
    
    .greeting-text {
        font-size: 13px;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mini-mascot-container {
    animation: float 6s ease-in-out infinite;
}

/* Entrance Animation */
@keyframes mascotEntrance {
    0% {
        transform: translateX(100px) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.mini-mascot-container {
    animation: mascotEntrance 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), float 6s ease-in-out infinite 1.5s;
}

/* Hover glow effect */
.mini-mascot-container:hover .mascot-helmet {
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        0 0 35px rgba(59, 130, 246, 0.5);
}

.mini-mascot-container:hover .mascot-suit {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.3);
}

.mini-mascot-container:hover .antenna-tip {
    box-shadow: 0 0 20px rgba(239, 68, 68, 1);
}

.mini-mascot-container:hover .jetpack-flame {
    animation-duration: 0.2s;
    transform: scaleY(1.5);
}