/* =========================================================
   UNREALFINITY BLOG
========================================================= */

.uf-blog,
.uf-blog *,
.uf-blog *::before,
.uf-blog *::after {
    box-sizing: border-box;
}


.uf-blog {
    width: 100%;

    font-family:
        "Chakra Petch",
        sans-serif;
}


/* =========================================================
   LIST HEADER
========================================================= */

.uf-blog-list-header {
    display: flex;
    align-items: center;

    gap: 18px;

    width: 100%;

    margin: 0 0 18px;
}


.uf-blog-list-heading {
    flex: 0 0 auto;

    color: #f1f3f4;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}


.uf-blog-list-line {
    width: 100%;
    height: 1px;

    background:
        rgba(255, 255, 255, 0.09);
}


/* =========================================================
   FILTERS
========================================================= */

.uf-blog-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    width: 100%;

    margin: 0 0 30px;
}


.uf-blog-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 16px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 6px;

    background:
        rgba(8, 11, 14, 0.92);

    color:
        rgba(241, 243, 244, 0.68);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.09em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.uf-blog-filter:hover {
    color: #ffffff;

    border-color:
        rgba(148, 214, 0, 0.50);

    transform:
        translateY(-1px);
}


.uf-blog-filter.is-active {
    color: #0b0e10;

    border-color: #94d600;

    background: #94d600;
}


/* =========================================================
   GRID
========================================================= */

.uf-blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    width: 100%;
}


/* =========================================================
   CARD
========================================================= */

.uf-blog-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #080b0e;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.uf-blog-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(148, 214, 0, 0.48);

    background:
        #0a0e11;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   IMAGE
========================================================= */

.uf-blog-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #050708;

    text-decoration: none;
}


/*
 * Miniatura zawsze wypełnia CAŁĄ powierzchnię pola obrazka.
 * Proporcje zdjęcia zostają zachowane.
 * Nadmiar po bokach / u góry i dołu jest kadrowany.
 *
 * !important zabezpiecza reguły przed stylami WordPressa,
 * Elementora i motywu ustawiającymi np. height:auto.
 */
.uf-blog-card-image img {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center !important;

    transition:
        transform 0.45s ease,
        opacity 0.3s ease;
}


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


/* =========================================================
   PLACEHOLDER
========================================================= */

.uf-blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(148, 214, 0, 0.06),
            rgba(8, 11, 14, 0) 45%
        ),
        #050708;

    color:
        rgba(255, 255, 255, 0.12);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.22em;
}


/* =========================================================
   CONTENT
========================================================= */

.uf-blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px;
}


/* =========================================================
   CATEGORY
========================================================= */

.uf-blog-category {
    align-self: flex-start;

    margin-bottom: 6px;

    color: #94d600;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.13em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.2s ease;
}


.uf-blog-category:hover {
    color: #b1ef35;
}


/* =========================================================
   DATE
========================================================= */

.uf-blog-date {
    display: block;

    margin: 0 0 13px;

    color:
        rgba(255, 255, 255, 0.34);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
========================================================= */

.uf-blog-title {
    margin:
        0 0 14px;

    padding: 0;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.28;

    letter-spacing: 0;
}


.uf-blog-title a {
    color: #f1f3f4;

    font-family:
        inherit;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.uf-blog-title a:hover {
    color: #ffffff;
}


/* =========================================================
   EXCERPT
========================================================= */

.uf-blog-excerpt {
    margin-bottom: 24px;

    color: #858d92;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}


/* =========================================================
   READ MORE
========================================================= */

.uf-blog-read-more {
    display: inline-flex;

    align-items: center;

    align-self:
        flex-start;

    gap: 8px;

    margin-top: auto;

    color: #94d600;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    letter-spacing:
        0.10em;

    text-decoration:
        none;

    transition:
        color 0.2s ease;
}


.uf-blog-read-more span {
    display:
        inline-block;

    transition:
        transform 0.2s ease;
}


.uf-blog-read-more:hover {
    color: #b1ef35;
}


.uf-blog-read-more:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   EMPTY
========================================================= */

.uf-blog-empty {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;

    width: 100%;

    padding:
        56px 20px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius:
        10px;

    background:
        #080b0e;

    color:
        #858d92;

    text-align:
        center;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size:
        14px;
}


.uf-blog-empty strong {
    color:
        #f1f3f4;

    font-weight:
        600;
}


.uf-blog-empty a {
    color:
        #94d600;

    font-weight:
        600;

    text-decoration:
        none;
}


/* =========================================================
   PAGINATION
========================================================= */

.uf-blog-pagination {
    width:
        100%;

    margin-top:
        48px;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


.uf-blog-pagination ul {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


.uf-blog-pagination li {
    margin:
        0;

    padding:
        0;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


.uf-blog-pagination .page-numbers {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        42px;

    height:
        42px;

    padding:
        0 12px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius:
        7px;

    background:
        transparent !important;

    box-shadow:
        none !important;

    color:
        #8b9398;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size:
        11px;

    font-weight:
        500;

    text-decoration:
        none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.uf-blog-pagination
.page-numbers:hover {
    border-color:
        rgba(148, 214, 0, 0.45);

    color:
        #ffffff;
}


.uf-blog-pagination
.page-numbers.current {
    border-color:
        #94d600;

    background:
        transparent !important;

    color:
        #94d600;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .uf-blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .uf-blog-list-header {
        gap:
            12px;
    }


    .uf-blog-list-heading {
        font-size:
            11px;
    }


    .uf-blog-filters {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 6px;

        scrollbar-width: thin;
    }


    .uf-blog-filter {
        flex: 0 0 auto;
    }


    .uf-blog-grid {
        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    .uf-blog-card-content {
        padding:
            20px;
    }


    .uf-blog-title {
        font-size:
            19px;
    }


    .uf-blog-excerpt {
        font-size:
            13px;
    }

}


/* =========================================================
   NAWIGACJA MIĘDZY WPISAMI
========================================================= */

.uf-post-navigation,
.uf-post-navigation *,
.uf-post-navigation *::before,
.uf-post-navigation *::after {
    box-sizing: border-box;
}


.uf-post-navigation {
    width: 100%;

    margin-top: 64px;
    padding-top: 8px;

    font-family:
        "Chakra Petch",
        sans-serif;
}


.uf-post-navigation-header {
    display: flex;
    align-items: center;

    gap: 18px;

    width: 100%;

    margin-bottom: 18px;
}


.uf-post-navigation-heading {
    flex: 0 0 auto;

    color: #f1f3f4;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}


.uf-post-navigation-line {
    width: 100%;
    height: 1px;

    background:
        rgba(255, 255, 255, 0.09);
}


.uf-post-navigation-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


.uf-post-nav-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 10px;

    background: #080b0e;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}


.uf-post-nav-card:not(.is-current):hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(148, 214, 0, 0.48);

    background:
        #0a0e11;
}


.uf-post-nav-card.is-current {
    border-color:
        rgba(148, 214, 0, 0.46);

    background:
        #080b0e;

    cursor: default;
}


/*
 * Aktualny artykuł jest celowo przyciemniony,
 * żeby wyraźnie odróżniał się od klikalnych sąsiednich kart.
 */
.uf-post-nav-card.is-current
.uf-post-nav-image,
.uf-post-nav-card.is-current
.uf-post-nav-content {
    opacity: 0.46;

    filter:
        brightness(0.62);

    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}


/*
 * Wyraźna etykieta na środku aktualnej karty.
 */
.uf-post-nav-current-overlay {
    position: absolute;

    z-index: 5;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 18px;

    pointer-events: none;
}


.uf-post-nav-current-overlay span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding:
        0 18px;

    border:
        1px solid rgba(148, 214, 0, 0.74);

    border-radius:
        7px;

    background:
        rgba(5, 7, 8, 0.88);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.34);

    color:
        #94d600;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size:
        13px;

    font-weight:
        700;

    line-height:
        1;

    letter-spacing:
        0.11em;

    text-align:
        center;

    text-transform:
        uppercase;
}


.uf-post-nav-card-empty {
    visibility: hidden;
    pointer-events: none;
}


.uf-post-nav-link {
    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


.uf-post-nav-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #050708;
}


.uf-post-nav-image-img {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center !important;
}


.uf-post-nav-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(148, 214, 0, 0.06),
            rgba(8, 11, 14, 0) 45%
        ),
        #050708;

    color:
        rgba(255, 255, 255, 0.12);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.18em;
}


.uf-post-nav-content {
    padding: 18px;
}


.uf-post-nav-label {
    margin-bottom: 9px;

    color:
        rgba(255, 255, 255, 0.40);

    font-size: 9px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


.uf-post-nav-card.is-current
.uf-post-nav-label {
    color: #94d600;
}


.uf-post-nav-category {
    margin-bottom: 7px;

    color: #94d600;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


.uf-post-nav-title {
    margin: 0 0 10px !important;
    padding: 0 !important;

    color: #f1f3f4 !important;

    font-family:
        "Chakra Petch",
        sans-serif !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}


.uf-post-nav-date {
    display: block;

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 9px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* =========================================================
   NAWIGACJA WPISÓW - TABLET
========================================================= */

@media (max-width: 1024px) {

    .uf-post-navigation-grid {
        gap: 12px;
    }


    .uf-post-nav-title {
        font-size: 14px !important;
    }

}


/* =========================================================
   NAWIGACJA WPISÓW - MOBILE
========================================================= */

@media (max-width: 680px) {

    .uf-post-navigation {
        margin-top: 48px;
    }


    .uf-post-navigation-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .uf-post-nav-card-empty {
        display: none;
    }


    .uf-post-nav-card.is-current {
        order: -1;
    }


    .uf-post-nav-content {
        padding: 16px;
    }

}


/* v1.6: w aktualnej karcie ukrywamy małą etykietę,
   bo główna informacja jest teraz wyświetlana centralnie. */
.uf-post-nav-card.is-current .uf-post-nav-label {
    visibility: hidden;
}
