:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --accent-color: #FFFFFF;
    --dim-color: #333333;
    --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --padding-container: 2rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    width: 100%;
}

.logo {
    font-weight: 300;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.logo-year {
    font-weight: 700;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

button {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-icon-text {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--padding-container);
    width: 100%;
}

.main-card {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1; /* Square card */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Space out content vertically */
    padding: 3rem;
    background-color: var(--bg-color);
}

#year-display {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    row-gap: 10px;
    column-gap: 5px;
    width: 100%;
    max-width: 450px;
    margin-bottom: 3rem;
}

.day-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
}

.day-past {
    background-color: var(--text-color);
}

.day-future {
    border: 1px solid #444; /* Dark gray outline */
}

.percentage-container h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.watermark {
    font-size: 1.2rem;
    color: #444;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: auto; /* Push to bottom of container if using flex-col */
}

/* Stats Footer */
.stats-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #888;
    color: var(--text-color);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.made-with {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.heart-icon {
    color: #444;
}

footer a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .main-card {
        padding: 1.5rem;
        aspect-ratio: auto;
        min-height: 500px;
    }

    #year-display {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .days-grid {
        row-gap: 5px;
        column-gap: 0px;
        grid-template-columns: repeat(20, 1fr); /* Kept to change grid columns on mobile in the future */
    }

    .percentage-container h2 {
        font-size: 1.8rem;
    }

    .stats-footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    header {
        padding: 1.5rem;
    }

    .header-controls button span {
        display: none; /* Hide EXPORT text on small screens, keep icon */
    }

    .header-controls .btn-icon-text {
        padding: 0.5rem;
        border-radius: 50%;
    }
}
