/* Base settings and Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Comfortaa', cursive, sans-serif;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEB 100%);
    color: #4A3F35;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* Background elements */
.stars-container, .hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    color: #FFB7B2;
    font-size: 1.5rem;
    animation: floatUp 6s linear infinite;
    opacity: 0;
    bottom: -50px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-105vh) translateX(var(--random-x, 20px)) rotate(var(--random-rotate, 360deg));
        opacity: 0;
    }
}

/* Container Card */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid #FFE5D9;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 183, 178, 0.2);
    max-width: 550px;
    width: 100%;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(255, 183, 178, 0.3);
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cute Cat Animation */
.cat-wrapper {
    margin-bottom: 25px;
    display: inline-block;
    cursor: pointer;
}

.cute-cat {
    transition: transform 0.3s ease;
}

.cat-wrapper:hover .cute-cat {
    animation: catWiggle 0.6s ease-in-out infinite alternate;
}

@keyframes catWiggle {
    0% {
        transform: rotate(-3deg) scale(1.03);
    }
    100% {
        transform: rotate(3deg) scale(1.03);
    }
}

/* Typography */
.title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #4A3F35;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: #FFD3B6;
    bottom: -8px;
    left: 20%;
    border-radius: 2px;
}

/* Countdown Grid */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.time-block {
    background: #FFFDFB;
    border: 2px solid #FFE5D9;
    border-radius: 20px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.time-block:hover {
    transform: scale(1.05);
    background-color: #FFF0ED;
}

.number {
    font-family: 'Pangolin', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: #FF8B94;
    line-height: 1.2;
}

.label {
    font-size: 0.8rem;
    color: #8A7E72;
    margin-top: 5px;
}

/* Celebration message when target date reached */
.celebration-message {
    padding: 20px;
    animation: bounceIn 0.8s ease both;
}

.celebration-message h2 {
    color: #FF8B94;
    font-size: 2rem;
    margin-bottom: 10px;
}

.celebration-message p {
    font-size: 1.1rem;
    color: #8A7E72;
}

.id-hidden {
    display: none !important;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .number {
        font-size: 1.8rem;
    }
}
