/* Style dla podstrony bloga i kategorii */

/* Sekcja hero */
.blog-hero {
    background-color: #1D1D1B;
    color: #fff;
    padding: 200px 0 40px;
    margin-bottom: 40px;
    text-align: center;
}

.blog-hero-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.archive-title {
    font-family: var(--title-font-family);
    font-size: 70px;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
}

.archive-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #666;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #DA6E4B;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    color: #DA6E4B;
    font-weight: 500;
}

/* Filtry kategorii */
.blog-filters {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    margin-right: 15px;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-link {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-link:hover {
    background-color: #e5e5e5;
}

.filter-link.active {
    background-color: #DA6E4B;
    color: #fff;
}

/* Usunięcie pseudoelementu after z linków filtrowania */
.filter-link.js-filter::after,
.filter-link:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -30px;
    color: transparent;
}

/* Alternatywnie - całkowite usunięcie pseudoelementu */
.filter-link.js-filter::after {
    display: none;
}

/* Style dla linków kategorii */
.category-link {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: #e5e5e5;
}

.category-link.active {
    background-color: #DA6E4B;
    color: #fff;
}

/* Siatka postów */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.post-category {
    background-color: #DA6E4B;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 500;
    margin-right: 15px;
    font-size: 12px;
}

.post-date {
    color: #666;
    font-weight: 400;
}

.post-card h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.4;
}


/* Paginacja */
.pagination {
    text-align: center;
    margin: 30px 0 60px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #DA6E4B;
    color: #fff;
}

.pagination .page-numbers:hover {
    background-color: #e5e5e5;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 8px 15px;
}

.pagination .nav-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

/* Brak postów */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 60px;
}

.no-posts h2 {
    font-family: var(--title-font-family);
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.no-posts p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsywność */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-title {
        font-size: 40px;
    }

    .blog-hero {
        padding: 150px 0 20px;
    }

    .blog-filters {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .blog-categories {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        display: flex;
        gap: 10px;
    }

    .archive-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .archive-description {
        font-size: 16px;
    }

    .post-card {
        max-width: 100%;
    }
}