/* * UI Design: Professional & Cute Love Countdown
 * Style: Glassmorphism / Romantic Pastel
 */

/* 1. KHAI BÁO BIẾN - Dễ dàng thay đổi màu sắc tại đây */
:root {
    --primary-pink: #ff8fa3;
    --dark-pink: #ff4d6d;
    --light-pink: #ffccd5;
    --accent-blue: #a6c1ee;
    --glass-white: rgba(255, 255, 255, 0.25);
    --text-color: #4a4a4a;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. RESET & CÀI ĐẶT CHUNG */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background: linear-gradient(-45deg, #fbc2eb, #a6c1ee, #ffccd5, #c1dfc4);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
    padding: 20px;
}

/* Hiệu ứng nền chuyển động mượt mà */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3. WRAPPER - TẤM KÍNH CHÍNH */
#wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    padding: 50px 30px;
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. TIÊU ĐỀ */
header .title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--dark-pink);
    margin-bottom: 30px;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.05);
}

/* 5. ĐỒNG HỒ ĐẾM THỜI GIAN */
#clock-box {
    margin-bottom: 40px;
}

#clock {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    padding: 25px 50px;
    border-radius: 60px;
    box-shadow: 0 15px 35px rgba(255, 77, 109, 0.15);
    border: 2px solid white;
    transition: var(--transition);
}

#clock:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 77, 109, 0.25);
}

#days {
    display: block;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--dark-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#time {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.sub-text {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    letter-spacing: 1px;
}

/* 6. THÔNG TIN CẶP ĐÔI */
#info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 50px 0;
    gap: 20px;
}

.person {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-border {
    position: relative;
    padding: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.img-border:hover {
    transform: scale(1.1) rotate(3deg);
}

.avt {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--light-pink);
}

.name {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #444;
    position: relative;
}

/* Hiệu ứng gạch chân cute cho tên */
.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-pink);
    border-radius: 10px;
}

/* 7. TRÁI TIM GIỮA */
#heart-container {
    flex: 0.5;
    text-align: center;
}

.heart {
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--dark-pink);
    cursor: pointer;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 77, 109, 0.4));
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

anni {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #888;
    font-size: 0.9rem;
}

/* 8. FOOTER & MESSAGE */
footer {
    margin-top: 40px;
}

.message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    background: rgba(255, 255, 255, 0.4);
    padding: 25px;
    border-radius: 25px;
    border-left: 5px solid var(--primary-pink);
    font-style: italic;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
}

/* 9. MUSIC PLAYER */
#music-player {
    margin-top: 30px;
    opacity: 0.5;
    transition: var(--transition);
}

#music-player:hover {
    opacity: 1;
}

/* 10. HIỆU ỨNG TIM BAY (Tạo từ JS) */
.heart-particle {
    position: fixed;
    top: -10px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    animation: fall linear forwards;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* 11. RESPONSIVE - TƯƠNG THÍCH ĐIỆN THOẠI */
@media (max-width: 768px) {
    #info {
        flex-direction: column;
        gap: 30px;
    }
    
    .avt {
        width: 130px;
        height: 130px;
    }
    
    #wrapper {
        padding: 30px 20px;
    }

    .heart {
        font-size: 4rem;
        margin: 10px 0;
    }
}

/* 12. THANH CUỘN (SCROLLBAR) CUTE */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 10px;
}