@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@font-face {
    font-family: 'VolumeTC';
    src: url('fonts/VolumeTCRegular.otf') format('opentype');
    font-display: swap;
}

:root {
    --font-elegant: 'VolumeTC', serif;
    --font-family: 'Nunito', sans-serif;
    --background-color: #e5e5e591;
    --content-rgba-color: rgba(255, 255, 255, 0.5);
    --text-color: #1a1a1a;
}

body {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    align-items: center;
    font-family: var(--font-family);
    color: var(--text-color);
    margin: 0;
    box-sizing: border-box;
}

/* Removed the trailing comma after .entry-text */
body.dark-theme,
body.dark-theme h1,
body.dark-theme .header-meta,
body.dark-theme footer,
body.dark-theme a,
body.dark-theme .entry,
body.dark-theme .entry-text
{
    color: #e0e0e0;
}

/* Removed the trailing comma after a */
body.dark-theme .nav-btn,
body.dark-theme .heatmap-nav a,
body.dark-theme .top-nav a
{
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

a {
    color: var(--text-color);
}

.header-meta {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    opacity: 0.7;
}

.entry {
    border-radius: 12px;
    padding: 2rem;
}

.entry-text {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
    color: var(--text-color);
    font-family: var(--font-elegant);
    max-width: 500px;
    min-width: 500px;
}

.entry-meta {
    font-size: 0.85rem;
    padding-top: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    opacity: 0.6;
    color: var(--text-color);
}

h1 {
    margin-bottom: 0.25rem;
}

.subtitle {
    text-align: center;
    opacity: 0.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}




/* ============ HEATMAP STYLES ============ */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 15px);
    gap: 2px;
    justify-content: center;
    margin: 2rem auto;
    max-width: 100%;
}

.heatmap-day {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

.heatmap-day.empty,
.heatmap-day-link.empty {
    background: rgba(255, 255, 255, 0.8);
}

.heatmap-day.filled,
.heatmap-day-link.filled {
    background-color: #898989;
    border: none;
}

.heatmap-day-link.empty {
    cursor: default;
}

.heatmap-day-link.filled:hover {
    opacity: 0.8;
}

/* Heatmap link styles */
.heatmap-day-link {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
}

.heatmap-day-link.filled {
    border: none;
}

.heatmap-day-link.filled:hover {
    opacity: 0.8;
}

.heatmap-container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.heatmap-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.legend-colors {
    display: flex;
    gap: 2px;
    align-items: center;
}

.legend-swatch {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

.heatmap-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.heatmap-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    background: var(--content-rgba-color);
    font-size: 0.9rem;
}


/* ============ NAVIGATION BUTTONS ============ */
.navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.nav-btn {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    background: var(--content-rgba-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    background: var(--content-rgba-color);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
/* ============ MONTH / BLOG VIEW ============ */
.month-body {
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
}

.month-view {
    width: 100%;
    max-width: 700px;
    padding: 4rem 1rem 0;
}

.month-entries {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    /* break the whole stack out of the centered .month-view container */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.month-entry {
    width: 100%;
    box-sizing: border-box;
}

.month-entry-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

.month-entry .entry-text {
    max-width: none;
    min-width: 0;
}

@media (max-width: 600px) {
    .month-entry-inner {
        padding: 2.5rem 1.25rem;
    }
}
/*  ============ FOOTER============ */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-color);
    box-sizing: border-box;
    width: 100%;
    margin-top: auto; 
}

/* ============ TOP RIGHT NAVIGATION ============ */
.top-nav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.top-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--content-rgba-color);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.top-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .top-nav {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.3rem;
    }

    .top-nav a {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}


/* Mobile adjustments */
@media (max-width: 600px) {
    .navigation {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-btn,
    .nav-disabled {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }

    .heatmap-link {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
	
	.entry-text {
    max-width: auto; 
	min-width: auto;
}
}