/* Garden Animation Styles */
.garden-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.garden-soil {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #8D6E63;
    border-top: 4px solid #6D4C41;
}

.garden-plants {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 5px;
}

/* Base Plant Style */
.plant {
    position: relative;
    width: 40px;
    height: 60px;
    transform-origin: bottom center;
    opacity: 0;
}

/* Animation Classes */
.animate-grow {
    animation: growUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-sway {
    animation: sway 3s ease-in-out infinite alternate;
}

/* Plant Types */

/* 1. Sprout (Futaba) */
.plant-type-1 {
    width: 20px;
    height: 30px;
}

.plant-type-1::before,
.plant-type-1::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    background: #8BC34A;
    border-radius: 50% 50% 0 50%;
}

.plant-type-1::before {
    left: -6px;
    transform: rotate(-10deg);
}

.plant-type-1::after {
    right: -6px;
    transform: rotate(80deg) scaleX(-1);
    border-radius: 50% 50% 50% 0;
}

.plant-type-1 .stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: #689F38;
}

/* 2. Tomato Plant */
.plant-type-2 {
    width: 50px;
    height: 80px;
}

.plant-type-2 .stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: #558B2F;
    border-radius: 4px;
}

.plant-type-2 .leaf {
    position: absolute;
    width: 20px;
    height: 10px;
    background: #7CB342;
    border-radius: 20px 0 20px 0;
}

.plant-type-2 .leaf:nth-child(1) {
    bottom: 20px;
    left: -10px;
    transform: rotate(-20deg);
}

.plant-type-2 .leaf:nth-child(2) {
    bottom: 40px;
    right: -10px;
    transform: rotate(20deg) scaleX(-1);
}

.plant-type-2 .leaf:nth-child(3) {
    bottom: 60px;
    left: -8px;
    transform: rotate(-10deg);
}

.plant-type-2 .fruit {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #e53935;
    border-radius: 50%;
    top: 20px;
    left: 10px;
    box-shadow: -2px -2px 0 rgba(0, 0, 0, 0.1) inset;
}

.plant-type-2 .fruit::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 4px;
    background: #33691E;
    border-radius: 4px 4px 0 0;
}

/* 3. Carrot (Leafy top) */
.plant-type-3 {
    width: 30px;
    height: 50px;
}

.plant-type-3 .leaves {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plant-type-3 .leaf-blade {
    width: 4px;
    height: 40px;
    background: #43A047;
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
}

.plant-type-3 .leaf-blade:nth-child(1) {
    height: 35px;
    transform: rotate(-15deg);
}

.plant-type-3 .leaf-blade:nth-child(2) {
    height: 45px;
    transform: rotate(0deg);
}

.plant-type-3 .leaf-blade:nth-child(3) {
    height: 35px;
    transform: rotate(15deg);
}

/* 4. Flower (Sunflowery) */
.plant-type-4 {
    width: 40px;
    height: 90px;
}

.plant-type-4 .stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #689F38;
}

.plant-type-4 .flower-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #FDD835;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plant-type-4 .flower-head::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FBC02D;
    border-radius: 50%;
    transform: scale(0.6);
}

.plant-type-4 .petals {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
}

.plant-type-4 .petal {
    position: absolute;
    top: -5px;
    left: 50%;
    transform-origin: bottom center;
    width: 6px;
    height: 12px;
    background: #FFF176;
    border-radius: 10px;
}

/* Animations */
@keyframes growUp {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes sway {
    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Delays for random feel */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.5s;
}

.delay-3 {
    animation-delay: 0.8s;
}

.delay-4 {
    animation-delay: 1.1s;
}

.delay-5 {
    animation-delay: 1.4s;
}

.delay-6 {
    animation-delay: 0.3s;
}

.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 1.0s;
}

/* Watering Can Animation */
.water-can {
    position: absolute;
    top: 20px;
    right: 20%;
    width: 60px;
    height: 40px;
    background: #4FC3F7;
    border-radius: 10px 10px 5px 5px;
    opacity: 0;
    animation: waterEnter 4s ease-in-out infinite;
    z-index: 2;
}

.water-can::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -15px;
    width: 20px;
    height: 5px;
    background: #4FC3F7;
    transform: rotate(-30deg);
}

.water-drops {
    position: absolute;
    top: 10px;
    right: -25px;
    width: 10px;
    height: 20px;
    opacity: 0;
    animation: pouring 4s ease-in-out infinite;
}

.drop {
    width: 4px;
    height: 6px;
    background: #81D4FA;
    border-radius: 50%;
    position: absolute;
    animation: dropFall 0.5s linear infinite;
}

@keyframes waterEnter {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0);
    }

    10%,
    40% {
        opacity: 1;
        transform: translate(-20px, 10px) rotate(-20deg);
    }
}

@keyframes pouring {

    0%,
    10% {
        opacity: 0;
    }

    15%,
    35% {
        opacity: 1;
    }

    40%,
    100% {
        opacity: 0;
    }
}

@keyframes dropFall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(30px);
        opacity: 0;
    }
}