/* Archive page styles */
.archive-container {
    max-width: 1000px;
    margin: 0 auto;
}

.archive-section {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.collapsible-header {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    transition: background 0.3s ease;
}

.collapsible-header:hover {
    background: var(--accent-secondary);
}

.post-count {
    font-size: 0.9em;
    opacity: 0.9;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.collapsible-header.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-secondary);
}

.collapsible-content.active {
    max-height: 2000px;
}

.post-list {
    padding: 20px;
}

.post-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: box-shadow 0.2s ease;
}

.post-preview:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
}

.post-preview:last-child {
    margin-bottom: 0;
}

.post-preview h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.post-preview h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-preview h4 a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.4;
}