/* Blog Archive Styles - WegańskieSmaki Design */
.blog-archive {
    background: var(--color-bg-primary, #f7fafc);
}

.blog-header {
    background: var(--color-bg-secondary, #f0fff4);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary-darker, #22543d);
    margin-bottom: 1rem;
    font-weight: 700;
    margin-top: 0;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary, #4a5568);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.blog-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.blog-main {
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Card Styles (matching homepage) */
.blog-card {
    background: var(--color-bg-white, #fff);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light, #718096);
    flex-wrap: wrap;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category a {
    color: var(--color-primary, #2f855a);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.blog-category a:hover {
    color: var(--color-primary-darker, #22543d);
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--color-text-dark, #1a202c);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--color-primary, #2f855a);
}

.blog-excerpt {
    color: var(--color-text-secondary, #4a5568);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.posts-navigation,
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a:not(header .nav-links a),
.page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: var(--color-bg-white, #fff);
    color: var(--color-text-secondary, #4a5568);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-links a:not(header .nav-links a):hover,
.page-numbers:hover {
    background: var(--color-bg-secondary, #f0fff4);
    color: var(--color-primary, #2f855a);
    border-color: var(--color-primary, #2f855a);
}

.page-numbers.current {
    background: var(--color-primary, #2f855a);
    color: white;
    border-color: var(--color-primary, #2f855a);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-white, #fff);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.no-posts h2 {
    color: var(--color-primary-darker, #22543d);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--color-text-secondary, #4a5568);
    margin-bottom: 2rem;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 2rem auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary, #2f855a);
}

.search-submit {
    padding: 0.75rem 1rem;
    background: var(--color-primary, #2f855a);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--color-primary-dark, #276749);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        padding: 0 0.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
}