/* =============================================================================
   ULFUR BLOG - Single Post
   Readable column, consistent with Ulfur design language.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Layout - readable column
   --------------------------------------------------------------------------- */
body.single-post #primary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 30px 80px;
    box-sizing: border-box;
}

body.single-post #main {
    width: 100%;
}

body.single-post .entry-content .alignfull,
body.single-post .entry-content .uagb-is-root-container.alignfull,
body.single-post .entry-content .wp-block-uagb-container.alignfull {
    width: 100vw !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
}
body.single-post .entry-content .alignfull > .uagb-container-inner-blocks-wrap {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.single-post #content > .ast-container {
    justify-content: center !important;
}
body.single-post .ast-breadcrumbs-wrapper,
body.single-post .ast-breadcrumbs-inner,
body.single-post .ast-breadcrumbs,
body.single-post .ast-breadcrumbs .trail-items,
body.single-post ul.trail-items {
    text-align: left !important;
    justify-content: flex-start !important;
}


body.single-post .ast-breadcrumbs-wrapper {
    width: 1480px;
    max-width: calc(100vw - 80px);
    padding:0 35px;
}

/* ---------------------------------------------------------------------------
   Article wrapper - no border, sits on the page background
   --------------------------------------------------------------------------- */
body.single-post article.post {
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
}

/* ---------------------------------------------------------------------------
   Post Header
   --------------------------------------------------------------------------- */
body.single-post .entry-header {
    margin: 0 0 24px;
    padding: 0;
    border: none;
    background: transparent;
}

body.single-post .entry-title {
    margin: 0 0 16px !important;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ast-global-color-3);
    letter-spacing: -0.01em;
    word-wrap: break-word;
}

body.single-post .entry-meta {
    display: none;   /* posty: ukryj meta (Przez ... / data) */
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ast-global-color-3);
    opacity: 0.65;
    margin: 0;
    padding: 0;
    border: none;
}

body.single-post .entry-meta a {
    color: var(--ast-global-color-0);
    text-decoration: none;
    transition: opacity 0.2s;
}

body.single-post .entry-meta a:hover {
    opacity: 0.8;
}

body.single-post .entry-meta .posted-on::after,
body.single-post .entry-meta .byline::after,
body.single-post .entry-meta .cat-links::after {
    content: '•';
    margin-left: 10px;
    opacity: 0.5;
    color: var(--ast-global-color-3);
}

body.single-post .entry-meta > :last-child::after {
    content: none;
}

/* ---------------------------------------------------------------------------
   Featured Image (only when present)
   --------------------------------------------------------------------------- */
body.single-post .post-thumbnail,
body.single-post .ast-blog-featured-section,
body.single-post .post-thumb-img-content {
    margin: 0 0 28px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.03);
}

body.single-post .post-thumbnail:empty,
body.single-post .ast-blog-featured-section:empty,
body.single-post .post-thumb-img-content:empty {
    display: none;
    margin: 0;
}

body.single-post .post-thumbnail img,
body.single-post .ast-blog-featured-section img,
body.single-post .post-thumb-img-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------------------------------------------------------------------------
   Post Content - typography
   --------------------------------------------------------------------------- */
body.single-post .entry-content {
    color: var(--ast-global-color-3);
    font-size: 1rem;
    line-height: 1.7;
}

body.single-post .entry-content > * {
    margin-top: 0;
    margin-bottom: 1.2em;
}

body.single-post .entry-content > :first-child {
    margin-top: 0;
}

body.single-post .entry-content > :last-child {
    margin-bottom: 0;
}

/* Hide empty content area cleanly */
body.single-post .entry-content:empty {
    display: none;
    margin: 0;
    padding: 0;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6 {
    color: var(--ast-global-color-3);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 0.6em;
}

body.single-post .entry-content h2 { font-size: 1.55rem; }
body.single-post .entry-content h3 { font-size: 1.3rem; }
body.single-post .entry-content h4 { font-size: 1.1rem; }
body.single-post .entry-content h5 { font-size: 1rem; }
body.single-post .entry-content h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

body.single-post .entry-content p {
    margin: 0 0 1.2em;
}

body.single-post .entry-content a:not(.wp-block-button__link):not(.button) {
    color: var(--ast-global-color-0);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s;
}

body.single-post .entry-content a:not(.wp-block-button__link):not(.button):hover {
    opacity: 0.75;
}

body.single-post .entry-content img,
body.single-post .entry-content figure img,
body.single-post .entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

body.single-post .entry-content figure,
body.single-post .entry-content .wp-block-image {
    margin: 1.6em 0;
}

body.single-post .entry-content figcaption,
body.single-post .entry-content .wp-element-caption {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--ast-global-color-3);
    opacity: 0.6;
    text-align: center;
}

body.single-post .entry-content blockquote,
body.single-post .entry-content .wp-block-quote {
    margin: 1.6em 0;
    padding: 16px 20px;
    border-left: 3px solid var(--ast-global-color-0);
    background: var(--ast-global-color-5);
    border-radius: 0 8px 8px 0;
    color: var(--ast-global-color-3);
    font-style: italic;
}

body.single-post .entry-content blockquote p:last-child,
body.single-post .entry-content .wp-block-quote p:last-child {
    margin-bottom: 0;
}

body.single-post .entry-content blockquote cite,
body.single-post .entry-content .wp-block-quote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.7;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 1.2em;
}

body.single-post .entry-content li {
    margin-bottom: 0.4em;
}

body.single-post .entry-content li::marker {
    color: var(--ast-global-color-0);
}

body.single-post .entry-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.92em;
    font-family: 'Fira Code', 'Consolas', monospace;
}

body.single-post .entry-content pre {
    margin: 1.4em 0;
    padding: 16px 20px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.5;
}

body.single-post .entry-content pre code {
    background: transparent;
    padding: 0;
}

body.single-post .entry-content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    background: var(--ast-global-color-5);
    border-radius: 8px;
    overflow: hidden;
}

body.single-post .entry-content table th,
body.single-post .entry-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

body.single-post .entry-content table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: var(--ast-global-color-3);
}

body.single-post .entry-content table tr:last-child td {
    border-bottom: none;
}

body.single-post .entry-content hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.single-post .entry-content .wp-block-button__link {
    background: var(--ast-global-color-0);
    color: #252525;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

body.single-post .entry-content .wp-block-button__link:hover {
    opacity: 0.9;
}

/* ---------------------------------------------------------------------------
   Post Footer - tags / categories chips
   --------------------------------------------------------------------------- */
body.single-post .entry-footer,
body.single-post footer.entry-meta {
    margin: 32px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ast-global-color-3);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.single-post .entry-footer .tags-links,
body.single-post .entry-footer .cat-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.single-post .entry-footer .tags-links a,
body.single-post .entry-footer .cat-links a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: transparent;
    color: var(--ast-global-color-3);
    text-decoration: none;
    font-size: 0.78rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

body.single-post .entry-footer .tags-links a:hover,
body.single-post .entry-footer .cat-links a:hover {
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-0);
    background: rgba(255, 184, 28, 0.06);
}

/* ---------------------------------------------------------------------------
   Prev/Next post pagination - compact 2-up grid
   Astra emits .post-navigation .nav-previous / .nav-next, each with an <a>
   containing the label + post title. We make them compact cards.
   --------------------------------------------------------------------------- */
body.single-post .post-navigation,
body.single-post nav.post-navigation {
    margin: 35px 0 0;
    padding: 0;
    border: none;
}

body.single-post .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
    margin: 0;
    padding: 0;
}

/* Hide Astra's default 1px vertical separator between prev/next (looks
   orphaned when one of the two links is missing). */
body.single-post .post-navigation .nav-previous::after,
body.single-post .post-navigation .nav-next::before,
body.single-post .post-navigation .nav-previous::before,
body.single-post .post-navigation .nav-next::after {
    content: none !important;
    display: none !important;
}

body.single-post .post-navigation .nav-next {
    grid-column: 2;
    text-align: right;
}

/* When only prev exists, keep it in left column */
body.single-post .post-navigation .nav-previous:only-child {
    grid-column: 1;
}

body.single-post .post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: var(--ast-global-color-5);
    color: var(--ast-global-color-3);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    min-height: 0;
}

body.single-post .post-navigation a:hover {
    border-color: var(--ast-global-color-0);
    background: rgba(255, 184, 28, 0.04);
}

body.single-post .post-navigation a:hover * {
    color: var(--ast-global-color-0);
}

/* Astra wraps the label and title; we restyle into a small caption + title */
body.single-post .post-navigation .nav-previous a::before,
body.single-post .post-navigation .nav-next a::before {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
    color: var(--ast-global-color-3);
}

body.single-post .post-navigation .nav-previous a > p,
body.single-post .post-navigation .nav-next a > p {
    margin: 0;
    font-weight: 600;
    color: var(--ast-global-color-3);
}

/* ---------------------------------------------------------------------------
   Comments
   --------------------------------------------------------------------------- */
body.single-post #comments {
    margin: 35px 0 0;
    padding: 35px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.single-post .comments-title,
body.single-post #reply-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ast-global-color-3);
}

body.single-post .comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

body.single-post .comment-list li.comment,
body.single-post .comment-list li.pingback {
    margin: 0 0 14px;
    padding: 16px 18px;
    background: var(--ast-global-color-5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    list-style: none;
}

body.single-post .comment-list .children {
    list-style: none;
    margin: 14px 0 0;
    padding-left: 24px;
}

body.single-post .comment-meta,
body.single-post .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

body.single-post .comment-author img.avatar {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

body.single-post .comment-author .fn,
body.single-post .comment-author cite {
    font-weight: 600;
    font-style: normal;
    color: var(--ast-global-color-3);
}

body.single-post .comment-metadata {
    font-size: 0.78rem;
    color: var(--ast-global-color-3);
    opacity: 0.55;
}

body.single-post .comment-metadata a {
    color: inherit;
    text-decoration: none;
}

body.single-post .comment-content {
    color: var(--ast-global-color-3);
    line-height: 1.6;
}

body.single-post .comment-content p {
    margin: 0 0 0.8em;
}

body.single-post .comment-content p:last-child {
    margin-bottom: 0;
}

body.single-post .reply a.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: var(--ast-global-color-3);
    text-decoration: none;
    font-size: 0.78rem;
    transition: border-color 0.2s, color 0.2s;
}

body.single-post .reply a.comment-reply-link:hover {
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-0);
}

/* ---------------------------------------------------------------------------
   Comment Form - full Astra override
   --------------------------------------------------------------------------- */
body.single-post #respond {
    margin-top: 24px;
    padding: 0;
}

body.single-post .comment-form {
    background: var(--ast-global-color-5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 22px;
}

body.single-post .comment-form .comment-notes,
body.single-post .comment-form .logged-in-as {
    font-size: 0.82rem;
    color: var(--ast-global-color-3);
    opacity: 0.65;
    margin-bottom: 14px;
}

body.single-post .comment-form p {
    margin: 0 0 14px;
}

body.single-post .comment-form .comment-form-author,
body.single-post .comment-form .comment-form-email,
body.single-post .comment-form .comment-form-url {
    display: inline-block;
    width: calc(33.333% - 8px);
    margin-right: 10px;
    vertical-align: top;
}

body.single-post .comment-form .comment-form-url {
    margin-right: 0;
}

body.single-post .comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--ast-global-color-3);
    opacity: 0.85;
}

body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"],
body.single-post .comment-form textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    color: var(--ast-global-color-3) !important;
}

body.single-post .comment-form input:focus,
body.single-post .comment-form textarea:focus {
    border-color: var(--ast-global-color-0) !important;
    outline: none !important;
}

body.single-post .comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Cookies consent row */
body.single-post .comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

body.single-post .comment-form .comment-form-cookies-consent label {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.75;
}

/* Submit button - !important needed to beat Astra's .submit { background: var(--ast-global-color-1) } */
body.single-post .comment-form .form-submit,
body.single-post .comment-form p.form-submit {
    margin: 0;
}

body.single-post .comment-form .form-submit input[type="submit"],
body.single-post .comment-form .form-submit button[type="submit"],
body.single-post .comment-form #submit,
body.single-post #commentform #submit,
body.single-post .comment-form input.submit,
body.single-post .comment-form button.submit {
    background: var(--ast-global-color-0) !important;
    background-color: var(--ast-global-color-0) !important;
    color: #252525 !important;
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    transition: opacity 0.2s !important;
}

body.single-post .comment-form .form-submit input[type="submit"]:hover,
body.single-post .comment-form .form-submit button[type="submit"]:hover,
body.single-post .comment-form #submit:hover,
body.single-post #commentform #submit:hover,
body.single-post .comment-form input.submit:hover,
body.single-post .comment-form button.submit:hover {
    opacity: 0.9 !important;
    background: var(--ast-global-color-0) !important;
    color: #252525 !important;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body.single-post #primary {
        padding: 8px 16px 48px;
    }

    body.single-post .entry-title {
        font-size: 1.5rem;
    }

    body.single-post .entry-content {
        font-size: 0.95rem;
    }

    body.single-post .entry-content h2 { font-size: 1.3rem; }
    body.single-post .entry-content h3 { font-size: 1.15rem; }

    body.single-post .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    body.single-post .post-navigation .nav-next {
        grid-column: 1;
        text-align: left;
    }

    body.single-post .comment-list .children {
        padding-left: 12px;
    }

    body.single-post .comment-form .comment-form-author,
    body.single-post .comment-form .comment-form-email,
    body.single-post .comment-form .comment-form-url {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* =============================================================================
   ZINTEGROWANE "SUPERIOR" CSS - pojedynczy wpis (single-post)
   ============================================================================= */
body.single-post #respond,
.nav-links {
    padding: 0 !important;
}
body.single-post .post-navigation,
body.single-post nav.post-navigation {
    margin: 35px 0 0 !important;
}
body.single-post #comments {
    padding: 35px 0 0;
    margin: 35px 0 0;
}
