:root {
    --bg-color: #fdf8f7;
    --card-bg: #ffffff;
    --primary-color: #d4a373;
    --accent-color: #e07a5f;
    --text-main: #3d342e;
    --text-muted: #8c7e74;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#header {
    width: 100%;
    background-color: var(--card-bg);
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

#header h1 {
    font-family: "Dancing Script", cursive;
    font-size: 2.2rem;
    color: var(--accent-color);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

.main-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(212, 163, 115, 0.12);
    text-align: center;
    width: 100%;
    border: 1px solid rgba(212, 163, 115, 0.1);
    position: relative;
    overflow: hidden;
}

.monthsary-banner {
    display: none;
    background: linear-gradient(135deg, #fbe8e5, #f5d6cf);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite ease-in-out;
}

.couple-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avatar-frame {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.2);
    transition: transform 0.3s ease;
}

.avatar-frame:hover {
    transform: scale(1.05);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-names {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.heart-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    margin: 0 0.5rem;
    vertical-align: middle;
}

.heart-bridge {
    font-size: 2rem;
    color: var(--accent-color);
    animation: heartbeat 1.5s infinite;
}

.counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.counter-wrapper {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.days-count {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1.1;
    display: inline-block;
    white-space: nowrap;
    will-change: transform, opacity;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease;
}

.days-count.detailed-view {
    font-size: 1.75rem;
    font-weight: 600;
}

.days-unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.anniversary-date {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: inline-block;
}

.toggle-btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: "Inter", sans-serif;
}

.toggle-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.12);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.12);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}
