/* ============================================================
   SITS Post Navigation — sitsel-post-navigation.css
   Mirrors the class naming convention used in sitsel-timeline.css
   ============================================================ */

/* ── Base Wrapper ─────────────────────────────────────────── */
.sitsel-pnav-wrapper {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px; /* overridden by Elementor wrapper_gap control */
}

/* ── Base Item ────────────────────────────────────────────── */
.sitsel-pnav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
    gap: 14px;
}

.sitsel-pnav-item.sitsel-pnav-empty {
    pointer-events: none;
    visibility: hidden;
}

/* Next item: mirror layout so arrow sits on the right */
.sitsel-pnav-item.sitsel-pnav-next {
    flex-direction: row-reverse;
}

/* Text stack */
.sitsel-pnav-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.sitsel-pnav-item.sitsel-pnav-next .sitsel-pnav-text {
    text-align: right;
}


/* Arrow box */
.sitsel-pnav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}



/* Divider */
.sitsel-pnav-divider {
    width: 1px;
    background-color: #e5e7eb;
    flex-shrink: 0;
    align-self: stretch;
}

/* Editor empty notice */
.sitsel-pnav-empty-notice {
    text-align: center;
    font-style: italic;
}





/* ============================================================
   STYLE 3 – Card with Thumbnail (card-thumb)
   ============================================================ */

/* Thumbnail */
.sitsel-pnav-thumb {
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}




/* ============================================================
   STYLE 4 – Minimal Underline (minimal)
   ============================================================ */



/* Inner flex so the arrow+text stack in correct order */
.sitsel-pnav-style-minimal .sitsel-pnav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}





/* Animated underline on title */
.sitsel-pnav-style-minimal .sitsel-pnav-title {
    position: relative;
    display: inline-block;
    white-space: normal;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .sitsel-pnav-wrapper {
        flex-direction: column;
        gap: 12px !important;
    }

    .sitsel-pnav-divider {
        display: none !important;
    }

    .sitsel-pnav-item,
    .sitsel-pnav-item.sitsel-pnav-next {
        flex-direction: row; /* keep prev arrow on left even on mobile */
        width: 100%;
    }

    .sitsel-pnav-item.sitsel-pnav-next .sitsel-pnav-text {
        text-align: left;
    }

    .sitsel-pnav-style-boxed-badge .sitsel-pnav-item.sitsel-pnav-next {
        flex-direction: row-reverse;
    }

    .sitsel-pnav-style-boxed-badge .sitsel-pnav-item.sitsel-pnav-next .sitsel-pnav-text {
        text-align: left;
    }
}