/* === Main Page === */
#main-page {
    position: relative;
}

.top-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    gap: 8px;
}

.top-btn {
    color: white;
    background: rgba(0,0,0,0.3);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.top-btn:hover { background: rgba(0,0,0,0.5); }


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 8px;
}

.main-title-icon {
    width: 180px;
    max-width: 40vw;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 105, 180, 0.4));
    margin: 10px 0 4px;
    transform: translateY(50px);
}

.subtitle {
    font-size: clamp(42px, 7.5vw, 54px);
    color: white;
    margin-bottom: 12px;
    font-family: 'Great Vibes', cursive;
}

.stats-overview {
    display: flex;
    gap: 12px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.stat-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    min-width: 80px;
}
.stat-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.stat-icon { font-size: 22px; }
.stat-number { font-size: 24px; font-weight: 800; color: white; margin: 2px 0; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.8); font-weight: 600; }

.days-counter {
    color: white;
    background: rgba(255,105,180,0.4);
    border-radius: 16px;
    padding: 8px 20px;
    font-weight: 500;
}

.anniversary-hint {
    color: white;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
}
.anniversary-hint:hover { text-decoration: underline; }

.memory-btn-container {
    margin: 16px 0;
}

.mood-calendar-right {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.memory-btn {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, rgba(255,105,180,0.9), rgba(255,20,147,0.9));
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 30px;
    padding: 14px 40px;
    cursor: pointer;
    transition: all 0.2s;
}
.memory-btn:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border-color: white;
    transform: scale(1.03);
}

/* Heart Animation */
.heart-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.main-content { position: relative; z-index: 1; }
.top-buttons { position: relative; z-index: 100; }
.heart {
    position: absolute;
    animation: heartFall linear forwards;
    opacity: 0;
}
@keyframes heartFall {
    0% { opacity: 0.6; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(100vh); }
}

/* Responsive for mood calendar */
@media (max-width: 1200px) {
    .mood-calendar-right {
        right: 20px;
    }
}

@media (max-width: 900px) {
    .mood-calendar-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
}
