/* ── Related Post Popup Pro - related-style.css ── */

/* ── Base popup hidden by default ── */
.rpp-popup {
    display: none;
    position: fixed;
    z-index: 99998;   /* below 99999 so AdSense overlays stay on top */
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
    animation: rppSlideUp 0.35s ease;
}

@keyframes rppSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Full-width bottom bar (default) ── */
.rpp-popup:not(.rpp-corner) {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 40px 10px 14px;
    flex-direction: column;
    gap: 6px;
}

/* ── Corner card ── */
.rpp-popup.rpp-corner {
    bottom: 16px;
    right: 16px;
    width: 290px;
    border-radius: 10px;
    padding: 12px 36px 12px 12px;
    flex-direction: column;
    gap: 8px;
}

/* ── Close button ── */
#rpp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 0;
}
#rpp-close:hover { opacity: 1; }

/* ── Each post item ── */
.rpp-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Thumbnail ── */
.rpp-thumb {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 5px;
}
.rpp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Text block ── */
.rpp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.rpp-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rpp-text a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
    /* Truncate very long titles on bar mode */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.rpp-corner .rpp-text a {
    white-space: normal; /* allow wrapping in corner card */
}
.rpp-text a:hover { text-decoration: underline; }

/* ── Divider between multiple posts ── */
.rpp-item + .rpp-item {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 6px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .rpp-popup.rpp-corner {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
    }
    .rpp-popup:not(.rpp-corner) {
        padding-right: 40px;
    }
    .rpp-thumb { width: 44px; height: 44px; }
    .rpp-text a { font-size: 13px; }
}
