﻿/* Decorations for Cake - Makes it more realistic */
.cake-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
}

.cake-sprinkles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, #ff61a0 1px, transparent 1px),
        radial-gradient(circle at 20% 20%, #87CEEB 1px, transparent 1px),
        radial-gradient(circle at 30% 30%, #FFD700 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, #ff61a0 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, #87CEEB 1px, transparent 1px),
        radial-gradient(circle at 60% 60%, #FFD700 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, #ff61a0 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, #87CEEB 1px, transparent 1px),
        radial-gradient(circle at 90% 90%, #FFD700 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.7;
    mix-blend-mode: overlay;
    animation: sprinkle-shimmer 10s infinite linear;
}

.cake-frosting-top {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 25px;
    overflow: hidden;
}

.frosting-drip {
    position: absolute;
    width: 15px;
    background: #ff61a0;
    border-radius: 0 0 10px 10px;
    top: 0;
    animation: frosting-shimmer 4s infinite alternate;
}

.frosting-drip:nth-child(1) {
    height: 30px;
    left: 10%;
    animation-delay: 0.5s;
    background: linear-gradient(to bottom, #ff61a0, rgba(255, 97, 160, 0.7));
}

.frosting-drip:nth-child(2) {
    height: 20px;
    left: 30%;
    animation-delay: 0.2s;
    background: linear-gradient(to bottom, #ff61a0, rgba(255, 97, 160, 0.7));
}

.frosting-drip:nth-child(3) {
    height: 35px;
    left: 50%;
    animation-delay: 0.7s;
    background: linear-gradient(to bottom, #ff61a0, rgba(255, 97, 160, 0.7));
}

.frosting-drip:nth-child(4) {
    height: 25px;
    left: 70%;
    animation-delay: 0.3s;
    background: linear-gradient(to bottom, #ff61a0, rgba(255, 97, 160, 0.7));
}

.frosting-drip:nth-child(5) {
    height: 28px;
    left: 90%;
    animation-delay: 0.6s;
    background: linear-gradient(to bottom, #ff61a0, rgba(255, 97, 160, 0.7));
}

.cake-decoration-swirls {
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: 10px;
    display: flex;
    justify-content: space-around;
}

.decoration-swirl {
    width: 20px;
    height: 20px;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.decoration-swirl:before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    top: 5px;
    left: 5px;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Topper star removed as requested */

/* Animation keyframes for cake decorations */
@keyframes sprinkle-shimmer {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

@keyframes frosting-shimmer {
    0% {
        opacity: 0.8;
        transform: scaleY(1);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.05);
    }
}

/* Topper animation removed for more realistic look */

/* Card active state for cake celebration */
.card.celebrate-active .cake-base {
    animation: cake-celebrate 1s ease-in-out;
}

@keyframes cake-celebrate {
    0%, 100% {
        transform: translateY(0) rotateX(5deg);
    }
    50% {
        transform: translateY(-15px) rotateX(5deg);
    }
}
/* Card active state for cake celebration */
.card.celebrate-active .cake-base {
    animation: cake-celebrate 1s ease-in-out;
}

@keyframes cake-celebrate {
    0%, 100% {
        transform: translateY(0) rotateX(5deg);
    }
    50% {
        transform: translateY(-15px) rotateX(5deg);
    }
}
