/* Archive page specific styles */

/* Archive header */
.archive-header {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.archive-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.archive-header .lead {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Search and filter section */
.search-filter-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.search-filter-card .card-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Archive results */
.archive-results h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.archive-results h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.year-section h3 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.year-section h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

/* Article cards */
.article-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.article-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1;
}

.article-card .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-weight: 500;
}

.article-card .text-muted {
    font-size: 0.85rem;
}

.article-card .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Load more button */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Responsive design for archive */
@media (max-width: 768px) {
    .archive-header {
        padding: 2rem 0;
        text-align: center;
    }
    
    .search-filter-card .card-body {
        padding: 1.5rem;
    }
    
    .form-control, .form-select {
        padding: 0.625rem 0.875rem;
    }
    
    .archive-results h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .year-section h3::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .article-card .card-body {
        padding: 1.25rem;
    }
    
    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .archive-header {
        padding: 1.5rem 0;
    }
    
    .archive-header h1 {
        font-size: 1.75rem;
    }
    
    .search-filter-card .card-body {
        padding: 1.25rem;
    }
    
    .article-card .card-body {
        padding: 1rem;
    }
    
    .article-card .card-title {
        font-size: 1rem;
    }
}

/* Print styles for archive */
@media print {
    .search-filter-card,
    .load-more-section {
        display: none !important;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .year-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}
