/* =============================================
   Post Category Navigator — pcn.css v2
   ============================================= */

.pcn-thumbnail-wrap {
    position: relative;
    display: block;
}

/* ── OVERLAY MODE ──────────────────────────── */

.pcn-overlay-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.52);
    color: #fff;
    font-size: 44px;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    transition: background 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pcn-overlay-arrow:hover,
.pcn-overlay-arrow:focus {
    background: rgba(0,0,0,0.78);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.pcn-overlay-arrow--prev { left: 0; }
.pcn-overlay-arrow--next { right: 0; }

.pcn-overlay-arrow--disabled {
    opacity: 0.2;
    pointer-events: none;
}

.pcn-arrow-icon {
    display: block;
    font-weight: bold;
    line-height: 1;
}

.pcn-overlay-arrow .pcn-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.pcn-overlay-arrow:hover .pcn-tooltip,
.pcn-overlay-arrow:focus .pcn-tooltip {
    opacity: 1;
}

/* ── STRIP MODE ────────────────────────────── */

.pcn-strip {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
    background: #111;
    color: #fff;
    min-height: 80px;
}

.pcn-strip-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    flex: 1;
    max-width: 50%;
    text-decoration: none;
    color: #fff;
    transition: background 0.18s ease;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.pcn-strip-btn:hover,
.pcn-strip-btn:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.pcn-strip-btn--prev {
    border-right: 1px solid #2a2a2a;
}

.pcn-strip-btn--next {
    justify-content: flex-end;
}

.pcn-strip-btn--disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Miniatura */
.pcn-strip-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcn-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Testo */
.pcn-strip-text {
    min-width: 0;
    flex: 1;
}

.pcn-strip-btn--next .pcn-strip-text {
    text-align: right;
}

.pcn-strip-dir {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pcn-strip-title {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Freccia decorativa */
.pcn-strip-chevron {
    flex-shrink: 0;
    font-size: 22px;
    color: #555;
    line-height: 1;
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 480px) {
    .pcn-strip {
        min-height: 72px;
    }

    .pcn-strip-btn {
        padding: 10px 10px;
        gap: 8px;
    }

    .pcn-strip-thumb {
        width: 44px;
        height: 44px;
    }

    .pcn-strip-title {
        font-size: 11px;
    }

    .pcn-strip-chevron {
        font-size: 18px;
    }

    .pcn-overlay-arrow {
        width: 50px;
        font-size: 32px;
    }
}

/* Striscia a fine articolo: margine sopra */
.pcn-strip--bottom {
    margin-top: 2rem;
}
