/* Custom animations that Tailwind doesn't have by default */

/* Music icon spin */
.spin-slow {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fade in up for scroll effect */
.fade-in-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 1s ease-out, transform 1s ease-out !important;
}

.fade-in-up.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Flying heart animation */
.flying-heart {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ec4899'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: flyUp 3s ease-in-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes flyUp {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), -500px) scale(0.5) rotate(var(--tr));
        opacity: 0;
    }
}

/* Fix missing dimensions for extracted components */
.photo-component, .material-component {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photo-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.svg-wrap {
    width: 100%;
    height: 100%;
}

/* Fix Calendar Grid Layout */
.two-date {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 15px;
    text-align: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.two-date > div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px; /* give cells some height */
}

.two-head {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Calendar Background */
.two-body {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px; /* Smooth corners */
    padding-bottom: 10px;
}

/* Fix Countdown Layout */
.countdown {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: var(--spacing, 20px);
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.countdown > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    border-radius: 8px; /* Optional rounding for better aesthetics */
}

.countdown > div > div:first-child {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

.countdown > div > div:last-child {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Animation for music icon */
.spin-slow {
    animation: spin 4s linear infinite;
}

.spin-slow.paused {
    animation-play-state: paused;
}

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

/* Modal Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wish Item */
.wish-item {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.3s ease-out forwards;
}
.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.wish-name {
    font-weight: 600;
    color: #4b5563;
}
.wish-date {
    font-size: 0.75rem;
    color: #9ca3af;
}
.wish-text {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}
