/* Gift Screen */
.gift-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 25%, #ffd4e8 50%, #ffc7e0 75%, #ffb3d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gift-screen.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gift-box-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gift-message {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #ff1493;
    margin-top: 40px;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    text-align: center;
    width: 100%;
}

/* Gift Box */
.gift-box {
    width: 200px;
    height: 200px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatGift 3s ease-in-out infinite;
}

.gift-box:hover {
    transform: scale(1.1) rotate(5deg);
}

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

.gift-body {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    box-shadow: 
        0 10px 40px rgba(255, 20, 147, 0.4),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2),
        inset 0 5px 20px rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.gift-box.opening .gift-body {
    animation: shakeBox 0.5s ease-in-out;
}

@keyframes shakeBox {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.gift-lid {
    width: 220px;
    height: 60px;
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    border-radius: 10px 10px 5px 5px;
    position: absolute;
    top: 0;
    left: -10px;
    box-shadow: 
        0 5px 20px rgba(255, 20, 147, 0.3),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2),
        inset 0 3px 10px rgba(255, 255, 255, 0.3);
    transform-origin: bottom center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gift-box.opening .gift-lid {
    transform: translateY(-100px) rotateX(-100deg);
    opacity: 0;
}

.gift-bow {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 50px;
    background: #ff1493;
    border-radius: 50% 50% 0 50%;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

.gift-bow::before {
    left: 0;
    transform: rotate(-45deg);
}

.gift-bow::after {
    right: 0;
    transform: rotate(45deg) scale(-1, 1);
}

/* Ribbon */
.gift-body::before,
.gift-body::after {
    content: '';
    position: absolute;
    background: #ff1493;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.gift-body::before {
    width: 30px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.gift-body::after {
    width: 100%;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

/* Sparkles around gift */
.sparkles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkleAnim 2s ease-in-out infinite;
    box-shadow: 0 0 10px #ffd700;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 10%; left: 15%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 20%; right: 15%; animation-delay: 0.9s; }
.sparkle:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.2s; }
.sparkle:nth-child(6) { top: 50%; right: 5%; animation-delay: 1.5s; }

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Confetti when opening */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff69b4;
    top: 50%;
    left: 50%;
    opacity: 0;
    animation: confettiAnim 1.5s ease-out forwards;
}

@keyframes confettiAnim {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(720deg);
    }
}

/* Surprise Button inside card */
.surprise-button-container {
    text-align: center;
    margin: 30px 0 20px;
}

.surprise-garden-button {
    background: linear-gradient(135deg, #a7ffee 0%, #54b8aa 100%);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(84, 184, 170, 0.4),
        0 0 20px rgba(167, 255, 238, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    animation: pulseButton 2s ease-in-out infinite;
}

.surprise-garden-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(84, 184, 170, 0.6),
        0 0 40px rgba(167, 255, 238, 0.5);
    animation: none;
}

.surprise-garden-button:active {
    transform: translateY(-2px) scale(1.02);
}

.surprise-icon {
    font-size: 1.8rem;
    animation: rotateFlower 3s linear infinite;
}

.surprise-text {
    font-size: 1.2rem;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(84, 184, 170, 0.4),
            0 0 20px rgba(167, 255, 238, 0.3);
    }
    50% {
        box-shadow: 
            0 15px 40px rgba(84, 184, 170, 0.6),
            0 0 40px rgba(167, 255, 238, 0.5);
    }
}

@keyframes rotateFlower {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(20deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gift-box {
        width: 150px;
        height: 150px;
    }
    
    .gift-body {
        width: 150px;
        height: 110px;
    }
    
    .gift-lid {
        width: 170px;
        height: 50px;
        left: -10px;
    }
    
    .gift-bow {
        width: 60px;
        height: 60px;
    }
    
    .gift-bow::before,
    .gift-bow::after {
        width: 30px;
        height: 40px;
    }
    
    .gift-message {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    .surprise-garden-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .surprise-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gift-box {
        width: 120px;
        height: 120px;
    }
    
    .gift-body {
        width: 120px;
        height: 90px;
    }
    
    .gift-lid {
        width: 140px;
        height: 40px;
        left: -10px;
    }
    
    .gift-bow {
        width: 50px;
        height: 50px;
    }
    
    .gift-bow::before,
    .gift-bow::after {
        width: 25px;
        height: 35px;
    }
    
    .gift-message {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .surprise-garden-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .surprise-icon {
        font-size: 1.3rem;
    }
    
    .surprise-text {
        font-size: 1rem;
    }
}

