/* ================================================
   Related Posts Silo — Frontend Styles
   ================================================ */

/* Đặt file này trong assets/rps-frontend.css */
/* Enqueue thủ công nếu cần: wp_enqueue_style('rps-frontend', RPS_URL . 'assets/rps-frontend.css') */

.rps-block {
    display: block;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: box-shadow .2s, transform .15s;
}

.rps-block:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

/* Vị trí H3 – màu nhạt hơn, inline feel */
.rps-block--h3 {
    background: #f0f7ff;
    border-color: #bee3f8;
}

/* Vị trí cuối bài – nổi bật hơn */
.rps-block--end {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-color: #c3d7ee;
}

.rps-block__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #718096;
    padding: 10px 16px 0;
    margin: 0;
}

.rps-block__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 14px;
    text-decoration: none !important;
    color: inherit !important;
}

.rps-block__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.rps-block__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rps-block__text {
    flex: 1;
    min-width: 0;
}

.rps-block__anchor {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color .15s;
}

.rps-block__link:hover .rps-block__anchor {
    color: #3182ce;
}

.rps-block__excerpt {
    display: block;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 480px) {
    .rps-block__thumb {
        width: 56px;
        height: 56px;
    }
    .rps-block__anchor {
        font-size: 14px;
    }
}
