/* Custom styles for archive template */

.archive-title-wrap {
    text-align: center;
    margin: 20px 0;
}

.archive-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.archive-filters {
    margin-bottom: 40px;
}

.filter-section {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-align: justify;
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
}

.filter-list li a {
    padding: 8px 15px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.filter-list li a:hover,
.filter-list li a.active {
    background: #333;
    color: #fff;
}

.archive-posts-wrap {
    margin: 40px 0;
}

.month-title-wrap {
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.month-title {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.archive-post-item {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.post-title {
    margin: 0;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.post-title a:hover {
    color: #666;
}

.no-posts-found {
    text-align: center;
    padding: 40px 0;
}

.magazines-section {
    margin: 50px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: #333;
}

.magazines-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.magazine-item {
    flex: 0 0 calc(16.666% - 20px);
    text-align: center;
    min-width: 150px;
}

.magazine-item a {
    text-decoration: none;
    color: #333;
}

.magazine-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.magazine-title {
    font-size: 14px;
    margin: 0;
}

.search-wrap {
    margin-bottom: 30px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-list li {
        display: block;
        margin-bottom: 10px;
    }
    
    .magazine-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .magazines-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .magazine-item {
        flex: 0 0 100%;
    }
}