/* Raptus Blog SEO Booster — Frontend CSS
 * --rbsb-accent injected by PHP from active theme.
 */

/* ─── Wrapper ─────────────────────────────────────────────────────── */
.rbsb-related {
    margin: 40px 0 20px;
    padding: 22px 24px;
    background: rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--rbsb-accent, #1a73e8);
    font-family: inherit;
}

.rbsb-related-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rbsb-accent, #1a73e8);
    margin: 0 0 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   PILLAR BLOCK — horizontal cards, 1 per row
   ═══════════════════════════════════════════════════════════════════ */
.rbsb-pillar-related .rbsb-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rbsb-pillar-related .rbsb-related-item { margin: 0; padding: 0; }

.rbsb-pillar-related .rbsb-related-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.15);
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rbsb-pillar-related .rbsb-related-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.13);
    border-color: var(--rbsb-accent, #1a73e8);
}

.rbsb-pillar-related .rbsb-related-thumb {
    flex: 0 0 90px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #F3F4F6;
}
.rbsb-pillar-related .rbsb-related-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.rbsb-pillar-related .rbsb-related-link:hover .rbsb-related-thumb img {
    transform: scale(1.05);
}

.rbsb-pillar-related .rbsb-related-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rbsb-pillar-related .rbsb-related-headline {
    font-size: 0.92rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
    display: block;
}
.rbsb-pillar-related .rbsb-related-excerpt {
    font-size: 0.78rem;
    color: #6B7280;
    line-height: 1.45;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   CLUSTER BLOCK — grid de cards grandes (3 colunas)
   ═══════════════════════════════════════════════════════════════════ */

/* Card principal: link pro pillar (horizontal, 1 linha) */
.rbsb-cluster-related .rbsb-pillar-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.15);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 0 14px;
    padding: 12px 16px;
}
.rbsb-cluster-related .rbsb-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.12);
    border-color: var(--rbsb-accent, #1a73e8);
}
.rbsb-cluster-related .rbsb-pillar-thumb {
    flex: 0 0 90px; height: 60px;
    border-radius: 6px; overflow: hidden; background: #F3F4F6;
}
.rbsb-cluster-related .rbsb-pillar-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.rbsb-cluster-related .rbsb-pillar-text {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.rbsb-cluster-related .rbsb-pillar-headline {
    font-size: 0.92rem; font-weight: 700;
    color: inherit; line-height: 1.3; display: block;
}
.rbsb-cluster-related .rbsb-pillar-excerpt {
    font-size: 0.78rem; color: #6B7280;
    line-height: 1.45; display: block;
}

/* Irmãos: grid de 3 cards por linha */
.rbsb-cluster-related .rbsb-siblings-label {
    margin: 16px 0 10px;
    font-size: 0.72rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rbsb-siblings-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.rbsb-sibling-item { margin: 0; padding: 0; }

.rbsb-sibling-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.15);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rbsb-sibling-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--rbsb-accent-rgb, 26, 115, 232), 0.13);
    border-color: var(--rbsb-accent, #1a73e8);
}
.rbsb-sibling-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F3F4F6;
}
.rbsb-sibling-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.rbsb-sibling-card:hover .rbsb-sibling-thumb img {
    transform: scale(1.04);
}
.rbsb-sibling-text {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.rbsb-sibling-headline {
    font-size: 0.84rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
    display: block;
}
.rbsb-sibling-excerpt {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.45;
    display: block;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .rbsb-related { padding: 16px 18px; margin: 28px 0 14px; }
    .rbsb-pillar-related .rbsb-related-thumb { flex: 0 0 70px; height: 48px; }
    .rbsb-cluster-related .rbsb-pillar-card { padding: 10px 12px; }
    .rbsb-cluster-related .rbsb-pillar-thumb { flex: 0 0 70px; height: 48px; }
    .rbsb-siblings-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
