/* ==========================================================
   PShowBlog – post-list.css (ulepszony)
   Motyw: seo-fast-simplo
   Kolory: #0089bb (niebieski), #1ba45f (zielony), #222 (tekst)
   ========================================================== */

/* --- WRAPPER --- */
.pshowblog-list-wrapper {
    margin-bottom: 24px;
}

/* --- NAGŁÓWEK STRONY --- */
.pshowblog-list-header {
    background: #fff;
    border-bottom: 3px solid #0089bb;
    padding: 18px 20px;
    margin-bottom: 0;
}
.pshowblog-list-title {
    color: #0089bb;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}
.pshowblog-list-title--hook {
    font-size: 1.4rem;
    font-weight: 600;
}
.pshowblog-list-title--hook a {
    color: #0089bb;
    text-decoration: none;
    transition: color 0.2s;
}
.pshowblog-list-title--hook a:hover {
    color: #006e96;
}

/* --- INTRO KATEGORII (obraz + opis) --- */
.pshowblog-category-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 20px;
    background: #f9fcfe;
    border-bottom: 1px solid #e8e8e8;
}
.pshowblog-category-intro-img {
    flex-shrink: 0;
    width: 180px;
}
.pshowblog-category-intro-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.pshowblog-category-intro-text {
    flex: 1;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
}
.pshowblog-category-intro-text p {
    margin-bottom: 0.6em;
}

/* --- TOOLBAR: SZUKAJ + SORTUJ --- */
.pshowblog-toolbar {
    background: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}
.pshowblog-search-form {
    display: flex;
    gap: 0;
}
.pshowblog-search-input {
    flex: 1;
    border-radius: 4px 0 0 4px !important;
    border-right: none !important;
    font-size: 0.9rem;
    padding: 8px 14px;
    height: auto;
    border: 1px solid #ccc;
    transition: border-color 0.2s;
}
.pshowblog-search-input:focus {
    border-color: #0089bb;
    box-shadow: 0 0 0 2px rgba(0,137,187,0.1);
    outline: none;
}
.pshowblog-search-btn {
    background: #0089bb;
    color: #fff;
    border: 1px solid #0089bb;
    border-radius: 0 4px 4px 0;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.pshowblog-search-btn:hover {
    background: #006e96;
}

.pshowblog-sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.pshowblog-sort-label {
    font-size: 0.88rem;
    color: #666;
    white-space: nowrap;
    margin: 0;
}
.pshowblog-sort-select-wrap {
    position: relative;
}
.pshowblog-sort-select {
    font-size: 0.88rem;
    padding: 6px 30px 6px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
    height: auto;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}
.pshowblog-sort-select:focus {
    border-color: #0089bb;
    outline: none;
}


/* ==========================================================
   WPISY – Layout jednokolumnowy (row)
   ========================================================== */

.pshowblog-entries-container {
    padding: 0;
}

.pshowblog-entry--row {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 0;
    transition: box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}
.pshowblog-entry--row:first-child {
    border-top: 1px solid #e8e8e8;
}
.pshowblog-entry--row:hover {
    box-shadow: 0 4px 16px rgba(0,137,187,0.07);
    border-color: #cde6f0;
}
.pshowblog-entry--row > .row {
    margin: 0;
}

/* Obraz – kolumna */
.pshowblog-entry__img-col {
    padding: 0;
    overflow: hidden;
}
.pshowblog-entry__img-link {
    display: block;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
}
.pshowblog-entry__figure {
    margin: 0;
    height: 100%;
}
.pshowblog-entry__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.pshowblog-entry--row:hover .pshowblog-entry__img {
    transform: scale(1.04);
}
.pshowblog-entry__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    height: 100%;
    background: #f0f5f8;
    color: #b0c4d0;
    font-size: 2.5rem;
}

/* Treść – kolumna */
.pshowblog-entry__content-col {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta: kategoria + data */
.pshowblog-entry__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.pshowblog-entry__category {
    display: inline-block;
    background: #e8f8ef;
    color: #1ba45f;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.pshowblog-entry__category:hover {
    background: #1ba45f;
    color: #fff;
    text-decoration: none;
}
.pshowblog-entry__date {
    color: #999;
    font-size: 0.82rem;
}
.pshowblog-entry__date .fa {
    margin-right: 3px;
}

/* Tytuł wpisu */
.pshowblog-entry__title {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 8px;
}
.pshowblog-entry__title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.pshowblog-entry__title a:hover {
    color: #0089bb;
}

/* Excerpt / opis */
.pshowblog-entry__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    /* Obcięcie do ~3 linii */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pshowblog-entry__excerpt a {
    color: #555;
    text-decoration: none;
}
.pshowblog-entry__excerpt a:hover {
    color: #333;
}
.pshowblog-entry__excerpt p {
    margin: 0;
}

/* Stopka wpisu */
.pshowblog-entry__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}
.pshowblog-entry__footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #888;
}
.pshowblog-entry__author {
    color: #666;
}
.pshowblog-entry__author .fa {
    margin-right: 3px;
    color: #aaa;
}
.pshowblog-entry__comments-link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.pshowblog-entry__comments-link:hover {
    color: #0089bb;
}
.pshowblog-entry__comments-link .fa {
    margin-right: 3px;
}
.pshowblog-entry__stars .fa-star {
    color: #f5a623;
    font-size: 0.8rem;
}
.pshowblog-entry__stars .fa-star-o {
    color: #ddd;
    font-size: 0.8rem;
}

/* Czytaj więcej */
.pshowblog-entry__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0089bb;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s, gap 0.2s;
    white-space: nowrap;
}
.pshowblog-entry__readmore:hover {
    color: #006e96;
    gap: 10px;
    text-decoration: none;
}
.pshowblog-entry__readmore .fa {
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.pshowblog-entry__readmore:hover .fa {
    transform: translateX(3px);
}


/* ==========================================================
   WPISY – Layout siatkowy (card)
   ========================================================== */

.pshowblog-grid-row {
    margin: 0 -8px;
    padding-top: 0 !important;
}
.pshowblog-grid-col {
    padding: 8px;
}

.pshowblog-entry--card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.pshowblog-entry--card:hover {
    box-shadow: 0 6px 20px rgba(0,137,187,0.1);
    border-color: #b8dce9;
    transform: translateY(-2px);
}

/* Obraz karty */
.pshowblog-entry__img-wrap {
    position: relative;
    overflow: hidden;
}
.pshowblog-entry--card .pshowblog-entry__img-link {
    display: block;
    min-height: 160px;
}
.pshowblog-entry--card .pshowblog-entry__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.pshowblog-entry--card:hover .pshowblog-entry__img {
    transform: scale(1.06);
}
.pshowblog-entry--card .pshowblog-entry__placeholder {
    min-height: 160px;
    height: 200px;
}

/* Overlay kategorii na obrazie */
.pshowblog-entry__category-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(27, 164, 95, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s;
    z-index: 2;
}
.pshowblog-entry__category-overlay:hover {
    background: rgba(0, 137, 187, 0.92);
    color: #fff;
    text-decoration: none;
}

/* Body karty */
.pshowblog-entry__card-body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pshowblog-entry--card .pshowblog-entry__title {
    font-size: 1.05rem;
    margin: 2px 0 8px;
    /* Max 2 linie */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pshowblog-entry--card .pshowblog-entry__excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
}
.pshowblog-entry--card .pshowblog-entry__meta {
    margin-bottom: 4px;
}
.pshowblog-entry--card .pshowblog-entry__footer {
    padding-top: 8px;
}
.pshowblog-entry--card .pshowblog-entry__readmore {
    font-size: 0.8rem;
}


/* ==========================================================
   PAGINACJA
   ========================================================== */

.pshowblog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    margin-top: 8px;
}
.pshowblog-pagination__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex-wrap: wrap;
}
.pshowblog-pagination__item {
    display: inline-flex;
}
.pshowblog-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.pshowblog-pagination__link:hover {
    background: #edf7fb;
    border-color: #0089bb;
    color: #0089bb;
    text-decoration: none;
}
.pshowblog-pagination__link--arrow {
    color: #0089bb;
}
.pshowblog-pagination__link--arrow:hover {
    background: #0089bb;
    color: #fff;
    border-color: #0089bb;
}

/* Aktywna strona */
.pshowblog-pagination__item.active .pshowblog-pagination__link {
    background: #0089bb;
    color: #fff;
    border-color: #0089bb;
    cursor: default;
}
/* Disabled */
.pshowblog-pagination__item.disabled .pshowblog-pagination__link {
    color: #ccc;
    background: #f8f8f8;
    border-color: #eee;
    cursor: default;
    pointer-events: none;
}

.pshowblog-pagination__info {
    font-size: 0.82rem;
    color: #999;
}


/* ==========================================================
   TAGI
   ========================================================== */

.pshowblog-tags-block {
    padding: 14px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pshowblog-tags-icon {
    color: #888;
    margin-right: 4px;
    font-size: 1rem;
}
.pshowblog-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}
.pshowblog-tag:hover {
    background: #0089bb;
    color: #fff;
    text-decoration: none;
    border-color: #0089bb;
}


/* ==========================================================
   KOMENTARZE KATEGORII (blok sidebar)
   ========================================================== */

.pshowblog-comment-stars {
    display: inline-flex;
    gap: 1px;
    margin: 2px 0;
}
.pshowblog-comment-stars .fa-star {
    color: #f5a623;
    font-size: 0.75rem;
}
.pshowblog-comment-stars .fa-star-o {
    color: #ddd;
    font-size: 0.75rem;
}
.pshowblog-comment-author {
    display: block;
    font-size: 0.82rem;
    color: #333;
}
.pshowblog-comment-date {
    display: block;
    font-size: 0.76rem;
    color: #999;
    margin-bottom: 4px;
}
.pshowblog-comment-text {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================
   BRAK WPISÓW
   ========================================================== */

.pshowblog-no-entries {
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
    color: #888;
    border-radius: 0;
}
.pshowblog-no-entries .fa {
    margin-right: 6px;
}


/* ==========================================================
   RESPONSYWNOŚĆ – Mobile
   ========================================================== */

@media (max-width: 991px) {
    .pshowblog-list-title {
        font-size: 1.5rem;
    }
    .pshowblog-entry__title {
        font-size: 1.1rem;
    }
    .pshowblog-entry--card .pshowblog-entry__img {
        height: 170px;
    }
    .pshowblog-category-intro {
        flex-direction: column;
    }
    .pshowblog-category-intro-img {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .pshowblog-list-header {
        padding: 14px 16px;
    }
    .pshowblog-list-title {
        font-size: 1.3rem;
    }
    .pshowblog-toolbar {
        padding: 12px 16px;
    }
    .pshowblog-sort-form {
        justify-content: flex-start;
        margin-top: 10px;
    }

    /* Layout row – kolumna na mobile */
    .pshowblog-entry--row > .row {
        flex-direction: column;
    }
    .pshowblog-entry__img-col {
        max-height: 220px;
    }
    .pshowblog-entry__img-link {
        min-height: 150px;
        max-height: 220px;
    }
    .pshowblog-entry__content-col {
        padding: 16px;
    }
    .pshowblog-entry__title {
        font-size: 1.05rem;
    }
    .pshowblog-entry__excerpt {
        font-size: 0.88rem;
    }

    /* Grid – pełna szerokość na mobile */
    .pshowblog-grid-row {
        margin: 0;
    }
    .pshowblog-grid-col {
        padding: 6px 0;
    }
    .pshowblog-entry--card .pshowblog-entry__img {
        height: 180px;
    }

    /* Paginacja */
    .pshowblog-pagination {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .pshowblog-pagination__link {
        min-width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }

    /* Tagi */
    .pshowblog-tags-block {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .pshowblog-list-title {
        font-size: 1.15rem;
    }
    .pshowblog-entry--card .pshowblog-entry__img {
        height: 150px;
    }
    .pshowblog-entry__content-col {
        padding: 14px 12px;
    }
    .pshowblog-entry__card-body {
        padding: 12px 14px 10px;
    }
    .pshowblog-entry--card .pshowblog-entry__title {
        font-size: 0.98rem;
    }
    .pshowblog-entry__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .pshowblog-search-input {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
    .pshowblog-search-btn {
        padding: 7px 12px;
    }
}