/* Monsters Cookie Lab Custom Styles & Animations */
:root {
    --mcl-pink: #fe8da1;
    --mcl-pink-light: #fbc2e2;
    --mcl-pink-subtle: #fff1f5;
    --mcl-blue: #1ba0d7;
    --mcl-blue-dark: #0284c7;
    --mcl-dark: #18181b;
}

@keyframes cookieBounceIn {
    0% {
        transform: scale(0.3) rotate(-20deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(254, 141, 161, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(27, 160, 215, 0.6);
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-cookie-in {
    animation: cookieBounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.box-glow {
    animation: pulseGlow 3s infinite ease-in-out;
}

.float-soft {
    animation: floatSoft 4s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f7;
}
::-webkit-scrollbar-thumb {
    background: #fbc2e2;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fe8da1;
}

/* Glassmorphism utility */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Cookie Slot Styling */
.cookie-slot {
    aspect-ratio: 1 / 1;
    transition: all 0.25s ease-in-out;
}

.cookie-slot:hover .remove-btn {
    opacity: 1;
    transform: scale(1);
}

/* Hero Morphing Slider Styles */
#hero-morphing-section {
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cookie-spin-in {
    animation: heroCookieIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroCookieIn {
    0% {
        opacity: 0;
        transform: scale(0.85) rotate(-12deg) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

.hero-text-fade-in {
    animation: heroTextFade 0.5s ease-out forwards;
}

@keyframes heroTextFade {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-thumb-active {
    box-shadow: 0 0 0 3px #fe8da1, 0 10px 25px -5px rgba(254, 141, 161, 0.5);
    transform: translateY(-4px) scale(1.06);
}
