/* ================================================
   Rede Sertão - Child Theme Features CSS
   Imagem em destaque, tempo de leitura, autor box,
   navegação entre posts e botões de compartilhamento
   ================================================ */

/* ---- IMAGEM EM DESTAQUE NO POST ---- */
.rs-featured-image-wrap {
    margin: 0 0 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.rs-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.rs-featured-image-caption {
    font-size: 12px;
    color: #777;
    font-style: italic;
    text-align: center;
    margin: 6px 0 0;
    padding: 4px 8px;
    background: #f8f8f8;
    border-radius: 0 0 6px 6px;
}

/* ---- TEMPO DE LEITURA ---- */
.rs-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    margin-bottom: 1.2rem;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ---- BOTÕES DE COMPARTILHAMENTO ---- */
.rs-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2rem 0;
    padding: 14px 18px;
    background: #f7f8fc;
    border-radius: 8px;
    border: 1px solid #e8e8f0;
}
.rs-share-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-right: 4px;
}
.rs-share-buttons a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.1s;
}
.rs-share-buttons a:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.rs-share-fb  { background: #1877f2; }
.rs-share-tw  { background: #000; }
.rs-share-wa  { background: #25d366; }
.rs-share-tg  { background: #0088cc; }

/* ---- AUTOR BOX ---- */
.rs-author-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 2.5rem 0;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.rs-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    flex-shrink: 0;
}
.rs-author-info {
    flex: 1;
}
.rs-author-name {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
}
.rs-author-name a {
    color: #222 !important;
    text-decoration: none !important;
}
.rs-author-bio {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px !important;
    line-height: 1.5;
}
.rs-author-social {
    display: flex;
    gap: 8px;
}
.rs-author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform 0.15s;
    color: #fff !important;
}
.rs-author-social a:hover { transform: scale(1.12); }
.rs-social-twitter   { background: #000; }
.rs-social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rs-social-facebook  { background: #1877f2; }

/* ---- NAVEGAÇÃO ENTRE POSTS ---- */
.rs-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 2.5rem 0;
}
.rs-post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #f7f8fc;
    border: 1px solid #e4e6f0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.rs-post-navigation a:hover {
    background: #eef1fb;
    border-color: #c0c8e8;
    transform: translateY(-2px);
}
.rs-nav-prev { align-items: flex-start; }
.rs-nav-next { align-items: flex-end; text-align: right; }
.rs-nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    font-weight: 600;
}
.rs-nav-title {
    font-size: 14px;
    color: #222 !important;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 600px) {
    .rs-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .rs-author-social { justify-content: center; }
    .rs-post-navigation { grid-template-columns: 1fr; }
    .rs-nav-next { align-items: flex-start; text-align: left; }
}
