/**
 * Piknik Archive - Styling
 */

.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.term-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    opacity: 0.9;
}

.page-meta {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    opacity: 0.8;
}

/* Posts Grid */
.piknik-archive {
    background: var(--section-bg-light, #f8f9fa);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.piknik-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.piknik-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.piknik-post-card .post-thumbnail {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.piknik-post-card .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.piknik-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.piknik-post-card .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-meta svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.post-meta .separator {
    color: #ddd;
}

.post-meta .post-category a {
    color: var(--color-primary, #8bc34a);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-meta .post-category a:hover {
    opacity: 0.8;
}

.post-title {
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.post-title a {
    color: var(--color-text, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--color-primary, #8bc34a);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary, #8bc34a);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    background: #fff;
    color: var(--color-text, #333);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.pagination .page-numbers:hover {
    background: var(--color-primary, #8bc34a);
    color: #fff;
    border-color: var(--color-primary, #8bc34a);
}

.pagination .page-numbers.current {
    background: var(--color-primary, #8bc34a);
    color: #fff;
    border-color: var(--color-primary, #8bc34a);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* No Results */
.no-results {
    padding: 4rem 2rem;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.no-results h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: var(--color-text, #333);
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem 0.75rem;
    }
}
