/*
 * Related Posts Pro — estilos del frontend.
 * Diseño: tarjeta horizontal con imagen a la izquierda y texto a la derecha.
 */

.rpp-container {
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rpp-title {
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rpp-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 720px) {
    .rpp-list {
        grid-template-columns: 1fr;
    }
}

.rpp-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rpp-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.14);
}

.rpp-item a {
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
    padding: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.rpp-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f1f1f1;
}

.rpp-thumb-placeholder {
    background: linear-gradient(135deg, #eee, #f7f7f7);
}

.rpp-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rpp-content h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rpp-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    .rpp-thumb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }
    .rpp-content h3 { font-size: 0.95rem; }
    .rpp-content p  { display: none; }
}

/* Soporte para temas oscuros */
@media (prefers-color-scheme: dark) {
    .rpp-item {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .rpp-container { border-top-color: rgba(255, 255, 255, 0.08); }
    .rpp-content p { color: rgba(255, 255, 255, 0.65); }
}
