/* style.css */
:root {
    --primary: #e63946;    /* Romantic Red */
    --secondary: #f1faee;  /* Soft White */
    --accent: #a8dadc;     /* Light Blue (Gnomeo/Juliet vibes) */
    --text: #1d3557;       /* Dark Blue */
    --locked: #9e9e9e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--secondary);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 450px; /* Mobile width */
    text-align: center;
}

h1 { color: var(--primary); margin-bottom: 5px; }
p { font-size: 0.9rem; color: #666; margin-top: 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
    padding-bottom: 50px;
}

.day-card {
    background: white;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.day-card.locked {
    background: #e0e0e0;
    color: var(--locked);
    cursor: default;
    box-shadow: none;
}

.day-card.unlocked {
    border-color: var(--primary);
    color: var(--primary);
}

.day-card.completed {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.day-card:active { transform: scale(0.95); }

/* Status Badge */
.status { font-size: 12px; margin-top: 5px; font-weight: normal; }

/* Modal/Popup Styles (Simple) */
.modal {
    display: none; 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: white; padding: 20px; border-radius: 15px; width: 80%; max-width: 300px;
}
button {
    background: var(--primary); color: white; border: none; padding: 10px 20px;
    border-radius: 20px; margin-top: 10px; cursor: pointer; font-size: 1rem;
}

/* --- CUSTOM POPUP MODAL --- */
.custom-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark background */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Blurs the background game */
}

.custom-modal-box {
    background: white;
    width: 85%;
    max-width: 320px;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: popupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-box h3 {
    margin-top: 0;
    color: var(--primary); /* Uses your red color */
    font-size: 1.5rem;
}

.custom-modal-box p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.modal-btn:active { transform: scale(0.95); }

@keyframes popupIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}