/* ====================== */
/* ARCHIVES PAGE STYLES   */
/* ====================== */

/* Main archives container */
.archives {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Section title */
.archives h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #d3e7ff;
}

/* Year toggle buttons */
.archive-year {
    margin-bottom: 1rem;
}

.year-toggle {
    width: 100%;
    background: rgba(18, 18, 28, 0.85);
    border: 1px solid #4aa8ff;
    color: #b4d9ff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.75rem;
    cursor: pointer;
    text-align: left;
    border-radius: 6px;
    backdrop-filter: blur(3px);
    transition: background 0.3s, box-shadow 0.3s;
    margin: 0.5rem 0;
}

.year-toggle:hover {
    background: rgba(74, 168, 255, 0.2);
    box-shadow: 0 0 10px #4aa8ff;
}

.year-toggle.active {
    background: rgba(74, 168, 255, 0.15);
}

/* Weeks container */
.archive-weeks {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

/* Individual week block */
.archive-week {
    margin: 1.5rem 0;
    background: rgba(18, 18, 28, 0.6);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #4aa8ff;
}

/* Week header (e.g., "Week of Sun Jan 7") */
.week-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #9ad4ff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(74, 168, 255, 0.3);
}

/* Article list within each week */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

/* Article date */
.article-date {
    display: inline-block;
    min-width: 90px;
    color: #c4c4d0;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

/* Article link */
.article-list a {
    color: #b4d9ff;
    text-decoration: none;
    transition: color 0.2s;
}

.article-list a:hover {
    color: #61b8fa;
    text-decoration: underline;
}

.article-list a:visited {
    color: #9999b0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .article-date {
        display: block;
        min-width: auto;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .article-list li {
        margin: 1rem 0;
    }

    nav {
        flex-direction: column;
        gap: 0.2rem !important;
    }
    
    .archive-week {
        padding: 0.75rem;
    }
    
    .week-header {
        font-size: 1rem;
    }
}