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

/* --- PROGRESS BAR --- */
.progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0089bb, #1ba45f);
    transition: width 0.15s linear;
    min-width: 1%;
    z-index: 9999;
    border-radius: 0;
}

/* --- NAGŁÓWEK KATEGORII BLOGA (strona listowania) --- */
.card-header.card-primary {
    background: #fff !important;
    border-bottom: 2px solid #1ba45f;
    padding: 18px 24px;
    border-radius: 0;
    box-shadow: none;
}
.card-header.card-primary h1,
.card-header.card-primary .post-list-title {
    color: #0089bb;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: none;
    margin: 0;
    background: transparent;
}
.card, .modal-content {
    border-radius: 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* --- LINK DO KATEGORII (na liście postów) --- */
a.category-link,
.col-xs-12 .small a.category-link {
    color: #1ba45f !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
a.category-link:hover {
    color: #117d44 !important;
    text-decoration: underline;
}

/* --- TYTUŁ POSTA (h1) --- */
h1[itemprop="name"],
h1[itemprop="name headline"] {
    color: #0089bb;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* --- PODTYTUŁ --- */
.display-4, .subtitle, .entry-subtitle {
    color: #444;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.5;
}

/* --- META: DATA, AUTOR, KOMENTARZE --- */
#pshowblog_entry_57 .mt-1 .mb-1,
[id^="pshowblog_entry_"] .mt-1 .mb-1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 6px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
[id^="pshowblog_entry_"] .mt-1 .mb-1 small {
    color: #666;
    font-size: 0.88rem;
}

/* --- BADGE KATEGORII NAD TYTUŁEM --- */
.text-success.h6.text-uppercase {
    display: inline-block;
    background: #e8f8ef;
    color: #1ba45f !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 3px;
    margin-top: 14px;
    margin-bottom: 2px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}
.text-success.h6.text-uppercase:hover {
    background: #1ba45f;
    color: #fff !important;
}

/* --- OBRAZ WPISU --- */
[id^="pshowblog_entry_"] figure.mb-0.row {
    margin-bottom: 0;
}
[id^="pshowblog_entry_"] figure.mb-0.row img {
    border-radius: 0;
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}

/* --- PLACEHOLDER BEZ OBRAZU --- */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    min-height: 220px;
    height: 100%;
    border-radius: 0;
    background: #f5f5f5;
}
.image-placeholder .fa-image {
    font-size: 3rem;
}

/* --- TREŚĆ POSTA --- */
[itemprop="description"] {
    font-size: 1.02rem;
    color: #333;
    line-height: 1.85;
}
[itemprop="description"] p,
.pshowblog_entry p,
.blog-content p {
    margin-bottom: 1.15em;
    line-height: 1.85;
}
[itemprop="description"] h2,
.pshowblog_entry h2,
.blog-content h2 {
    color: #0089bb;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8f3f8;
}
[itemprop="description"] h3,
.pshowblog_entry h3,
.blog-content h3 {
    color: #222;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.35;
}

/* Linki w treści */
[itemprop="description"] a,
.pshowblog_entry a,
.blog-content a {
    color: #0089bb;
    text-decoration: underline;
    text-decoration-color: rgba(0,137,187,0.3);
    text-underline-offset: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
    word-break: break-word;
}
[itemprop="description"] a:hover,
.pshowblog_entry a:hover,
.blog-content a:hover {
    color: #006e96;
    text-decoration-color: #006e96;
}

/* Listy w treści */
[itemprop="description"] ul, .pshowblog_entry ul, .blog-content ul {
    list-style-type: disc;
    margin-left: 1.5em;
    margin-bottom: 1.2em;
    padding-left: 1em;
}
[itemprop="description"] ul ul, .pshowblog_entry ul ul, .blog-content ul ul {
    list-style-type: circle;
}
[itemprop="description"] ol, .pshowblog_entry ol, .blog-content ol {
    list-style-type: decimal;
    margin-left: 1.5em;
    margin-bottom: 1.2em;
    padding-left: 1em;
}
[itemprop="description"] li, .pshowblog_entry li, .blog-content li {
    margin-bottom: 0.4em;
    line-height: 1.75;
}

/* Tabele w treści */
[itemprop="description"] table,
.pse-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
}
[itemprop="description"] th, .pse-th {
    background: #0089bb;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}
[itemprop="description"] td, .pse-td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}
[itemprop="description"] tr:nth-child(even), .pse-tr:nth-child(even) {
    background: #f8fbfd;
}
[itemprop="description"] tr:hover, .pse-tr:hover {
    background: #edf7fb;
}

/* Obrazy w treści */
[itemprop="description"] img,
.pse-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 4px;
}
[itemprop="description"] figure,
.pse-figure {
    margin: 1.5em 0;
    text-align: center;
}
[itemprop="description"] hr, .pse-hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* --- NAWIGACJA PREV / NEXT --- */
.mb-2.row.related-posts-nav {
    border-top: 2px solid #eee;
    margin-top: 36px !important;
    margin-bottom: 0 !important;
    padding-top: 20px;
    padding-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.mb-2.row.related-posts-nav .col-xs-12 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
    padding: 0;
}
.mb-2.row.related-posts-nav a {
    display: flex;
    align-items: center;
    max-width: 49%;
    min-width: 0;
    background: #fafafa;
    border-radius: 4px;
    padding: 10px 14px;
    border: 1px solid #e4e4e4;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}
.mb-2.row.related-posts-nav a:hover {
    background: #edf7fb;
    border-color: #0089bb;
    box-shadow: 0 2px 8px rgba(0,137,187,0.08);
}
.mb-2.row.related-posts-nav a .text-muted {
    font-size: 0.9rem;
    color: #444 !important;
    line-height: 1.35;
}
.mb-2.row.related-posts-nav .fa-arrow-left,
.mb-2.row.related-posts-nav .fa-arrow-right {
    color: #0089bb;
    font-size: 1.15em;
    margin: 0 8px;
    flex-shrink: 0;
}
.mb-2.row.related-posts-nav img {
    margin: 0 8px;
    max-height: 44px;
    width: auto;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

/* --- TAGI --- */
[id^="pshowblog_entry_"] > .mb-2:last-of-type .fa-tags {
    color: #888;
    margin-right: 4px;
}
[id^="pshowblog_entry_"] > .mb-2:last-of-type a {
    display: inline-block;
    background: #f0f0f0;
    color: #555 !important;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.82rem;
    margin: 2px 2px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}
[id^="pshowblog_entry_"] > .mb-2:last-of-type a:hover {
    background: #0089bb;
    color: #fff !important;
}

/* --- SOCIAL SHARING --- */
.social-sharing {
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 8px 18px;
    margin: 4px 0;
}
.social-sharing[data-type="twitter"] {
    background: #1da1f2 !important;
    border-color: #1da1f2 !important;
}
.social-sharing[data-type="facebook"] {
    background: #3b5998 !important;
    border-color: #3b5998 !important;
}
.social-sharing[data-type="pinterest"] {
    background: #bd081c !important;
    border-color: #bd081c !important;
}
.social-sharing:hover {
    opacity: 0.88;
}

/* --- KOMENTARZE --- */
h3.mt-3.mb-2 {
    color: #222;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.comment_response_form textarea,
#comment_form textarea {
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.2s;
}
.comment_response_form textarea:focus,
#comment_form textarea:focus {
    border-color: #0089bb;
    box-shadow: 0 0 0 2px rgba(0,137,187,0.1);
}
#comment_form .btn-success,
.comment_response_form .btn-success {
    background: #1ba45f;
    border-color: #1ba45f;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}
#comment_form .btn-success:hover,
.comment_response_form .btn-success:hover {
    background: #158a4f;
}

/* Rating stars */
#rating-container .fa-star {
    color: #f5a623;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.15s;
}
#rating-container .fa-star:hover {
    transform: scale(1.2);
}
.fa-star-o {
    color: #ccc;
}

/* --- POLECANE WPISY --- */
.recomended_span,
[id^="pshowblog_entry_"] + span {
    display: block;
    color: #0089bb;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}


/* ==========================================================
   SIDEBAR – Bloki blogowe w lewej kolumnie
   ========================================================== */

.pshowblog-sidebar-block {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: hidden;
}
.pshowblog-sidebar-title {
    background: #f8f8f8;
    border-bottom: 2px solid #0089bb;
    padding: 12px 16px;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pshowblog-sidebar-title .fa {
    color: #0089bb;
    font-size: 1rem;
}
.pshowblog-sidebar-content {
    padding: 0;
}

/* Lista kategorii */
.pshowblog-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pshowblog-cat-item {
    border-bottom: 1px solid #f0f0f0;
}
.pshowblog-cat-item:last-child {
    border-bottom: none;
}
.pshowblog-cat-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.pshowblog-cat-item a:hover {
    background: #edf7fb;
    color: #0089bb;
    padding-left: 22px;
}
.pshowblog-cat-item a .fa-angle-right {
    color: #0089bb;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.pshowblog-cat-item a:hover .fa-angle-right {
    transform: translateX(3px);
}
.pshowblog-cat-item.active a {
    background: #e8f3f8;
    color: #0089bb;
    font-weight: 700;
    border-left: 3px solid #0089bb;
}

/* Lista wpisów (ostatnie / podobne / popularne) */
.pshowblog-sidebar-entries {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pshowblog-sidebar-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.pshowblog-sidebar-entry:last-child {
    border-bottom: none;
}
.pshowblog-sidebar-entry:hover {
    background: #f9fcfe;
}

/* Miniatura wpisu */
.pshowblog-sidebar-entry-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pshowblog-sidebar-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.pshowblog-sidebar-entry:hover .pshowblog-sidebar-entry-thumb img {
    transform: scale(1.08);
}
.pshowblog-sidebar-no-img {
    background: #e8f3f8;
}
.pshowblog-sidebar-no-img .fa {
    color: #0089bb;
    font-size: 1.3rem;
}

/* Tytuł i data wpisu w sidebarze */
.pshowblog-sidebar-entry-info {
    flex: 1;
    min-width: 0;
}
.pshowblog-sidebar-entry-info a {
    display: block;
    color: #333;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s;
    /* max 3 linie */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pshowblog-sidebar-entry-info a:hover {
    color: #0089bb;
}
.pshowblog-sidebar-entry-date {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    color: #999;
}


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

@media (max-width: 991px) {
    h1[itemprop="name"], h1[itemprop="name headline"] {
        font-size: 1.55rem;
    }
    [itemprop="description"] h2 {
        font-size: 1.25rem;
    }
    [itemprop="description"] h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    /* Post tytuł i treść */
    h1[itemprop="name"], h1[itemprop="name headline"] {
        font-size: 1.35rem;
        margin-top: 8px;
    }
    [itemprop="description"] {
        font-size: 0.96rem;
        line-height: 1.75;
    }
    [itemprop="description"] h2 {
        font-size: 1.15rem;
        margin-top: 1.8em;
    }
    [itemprop="description"] h3 {
        font-size: 1.02rem;
    }
    [id^="pshowblog_entry_"] figure.mb-0.row img {
        max-height: 260px;
    }

    /* Tabele - scroll horyzontalny */
    [itemprop="description"] .pse-div {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    [itemprop="description"] table, .pse-table {
        min-width: 420px;
    }
    [itemprop="description"] th, .pse-th,
    [itemprop="description"] td, .pse-td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    /* Nawigacja prev/next */
    .mb-2.row.related-posts-nav {
        flex-direction: column;
        gap: 8px;
        margin-top: 24px !important;
        padding-top: 14px;
    }
    .mb-2.row.related-posts-nav .col-xs-12 {
        flex-direction: column;
        gap: 8px;
    }
    .mb-2.row.related-posts-nav a {
        max-width: 100%;
        font-size: 0.92rem;
        padding: 10px 10px;
    }
    .mb-2.row.related-posts-nav img {
        max-height: 36px;
    }

    /* Social sharing – pełna szerokość */
    .social-sharing {
        width: 100%;
        text-align: center;
        margin: 3px 0;
    }

    /* Komentarze */
    #comment_form .row .col-xs-12.col-md-4,
    .comment_response_form .col-xs-12.col-md-6 {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    h1[itemprop="name"], h1[itemprop="name headline"] {
        font-size: 1.2rem;
    }
    .text-success.h6.text-uppercase {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    [itemprop="description"] {
        font-size: 0.92rem;
    }
    [id^="pshowblog_entry_"] figure.mb-0.row img {
        max-height: 200px;
    }
}