:root {
    --primary-color: #e63946;
    /* Deep Red/Pink */
    --secondary-color: #ff9a9e;
    /* Soft Pink */
    --accent-color: #ffd700;
    /* Gold */
    --bg-color: #fff0f3;
    /* Very pale pink background */
    --text-color: #4a4a4a;
    /* Soft charcoal */
    --card-bg: #ffffff;
    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Raleway', sans-serif;
    --transition-speed: 0.5s;
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(#ffe3e3 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* --- Unified Premium Themes --- */

/* Rose Day 🌹 */
body.theme-rose {
    background: linear-gradient(135deg, #fff0f3 0%, #ffe4e1 100%);
    color: #9b1c31;
}

body.theme-rose h1,
body.theme-rose h2 {
    color: #c21e3d;
    font-family: 'Great Vibes', cursive;
}

body.theme-rose .btn {
    background: linear-gradient(45deg, #c21e3d, #d32f2f);
    box-shadow: 0 4px 15px rgba(194, 30, 61, 0.3);
}

/* Propose Day 💍 */
body.theme-propose {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff9c4 100%);
    color: #5d4037;
}

body.theme-propose h1 {
    color: #fbc02d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2.8rem;
}

body.theme-propose .btn {
    background: linear-gradient(45deg, #fbc02d, #f57f17);
    color: white;
}

/* Chocolate Day 🍫 */
body.theme-chocolate {
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
    color: #4e342e;
}

body.theme-chocolate h1 {
    color: #5d4037;
    font-weight: 800;
}

body.theme-chocolate .btn {
    background: linear-gradient(45deg, #5d4037, #3e2723);
}

/* Teddy Day 🧸 */
body.theme-teddy {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #006064;
}

body.theme-teddy h1 {
    color: #00acc1;
    font-family: 'Raleway', sans-serif;
}

body.theme-teddy .btn {
    background: linear-gradient(45deg, #00acc1, #00838f);
    border-radius: 20px;
}

/* Promise Day 🤝 */
body.theme-promise {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
}

body.theme-promise h1 {
    color: #8e24aa;
}

body.theme-promise .btn {
    background: linear-gradient(45deg, #8e24aa, #6a1b9a);
}

/* Hug Day 🤗 */
body.theme-hug {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    color: #e65100;
}

body.theme-hug h1 {
    color: #fb8c00;
}

body.theme-hug .btn {
    background: linear-gradient(45deg, #fb8c00, #ef6c00);
}

/* Kiss Day 💋 */
body.theme-kiss {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
}

body.theme-kiss h1 {
    color: #d32f2f;
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
}

body.theme-kiss .btn {
    background: linear-gradient(45deg, #d32f2f, #b71c1c);
}

/* Valentine's Day ❤️ */
body.theme-valentine {
    background: radial-gradient(circle at center, #ff80ab 0%, #ff4081 100%);
    color: #880e4f;
}

body.theme-valentine .container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    /* box-shadow removed */
    /* animation removed to avoid shadow pulse */
}

body.theme-valentine h1 {
    color: #c2185b;
    font-size: 3.8rem;
    text-shadow: 0 4px 10px rgba(194, 24, 91, 0.2);
}

body.theme-valentine .btn {
    background: white;
    color: #c2185b;
    font-weight: 900;
}

/* Utilities */
/* Glassmorphism Container */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 3rem;
    width: 90%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    /* box-shadow removed as requested */
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: heartbeat 2s infinite;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Grid for Days */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.day-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.2);
}

.day-card.locked {
    background: #e0e0e0;
    cursor: not-allowed;
    color: #888;
}

.day-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.day-card.locked .icon {
    color: #999;
}

/* Day Page Specifics */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    /* removed background, border, shadow for single-box look */
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Gift Reveal */
.gift-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px auto;
    cursor: pointer;
}

.gift-box,
.gift-revealed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease;
}

.gift-revealed {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease;
}

.gift-container.opened .gift-box {
    opacity: 0;
    pointer-events: none;
}

.gift-container.opened .gift-revealed {
    opacity: 1;
    transform: scale(1);
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 100;
    color: var(--primary-color);
}

/* Floating Hearts Background */
.bg-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.heart {
    position: absolute;
    color: rgba(255, 154, 158, 0.5);
    animation: floatUp 15s linear infinite;
    bottom: -100px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Password Overlay */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#password-overlay.hidden {
    display: none;
}

#password-overlay h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#password-input {
    padding: 15px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    outline: none;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

#login-btn {
    padding: 12px 40px;
    font-size: 1.1rem;
    background: #fff;
    color: #ff6b6b;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

#login-btn:hover {
    transform: scale(1.05);
}

#login-error {
    color: #d32f2f;
    margin-top: 15px;
    font-weight: bold;
    height: 20px;
}