/* ============================================
   Entrefios - HOME PAGE STYLES (Figma)
   ============================================ */

/* ---- BANNER PROMO ---- */
.ef-home-banner {
    position: relative;
    overflow: hidden;
    background: var(--ef-rose);
}
.ef-banner-img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 200px;
    object-fit: cover;
}
.ef-banner-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--ef-rose) 0%, #c48584 50%, var(--ef-rose-light) 100%);
}
/* posição herdada do .ef-banner-btn */
.ef-banner-btn {
    position: absolute;
    right: clamp(1%, 10vw, 18%);
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.35rem, 1.1vw, 0.95rem);
    padding: clamp(3px, 0.8vw, 14px) clamp(5px, 1.6vw, 28px);
    border-radius: clamp(2px, 0.4vw, 6px);
    letter-spacing: clamp(0px, 0.08vw, 1px);
    transition: opacity 0.2s;
    max-width: clamp(80px, 18vw, 300px);
    text-align: center;
    line-height: 1.3;
}
.ef-banner-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* ---- DESTAQUES ---- */
.ef-home-destaques {
    background: #f9f9f9;
    padding: 50px 0 50px;
}
.ef-home-section-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ef-dark);
    margin-bottom: 25px;
    font-style: italic;
}

/* Post grande (esquerda) - imagem em cima, info embaixo */
.ef-destaque-main {
    display: block;
    text-decoration: none;
}
.ef-destaque-main-img {
    border-radius: 10px;
    overflow: hidden;
}
.ef-destaque-main-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.ef-destaque-main:hover .ef-destaque-main-img img {
    transform: scale(1.03);
}
.ef-destaque-main-info {
    padding: 14px 0 0;
}
.ef-destaque-main-info .ef-badge {
    margin-right: 10px;
}
.ef-destaque-main-info h3 {
    color: var(--ef-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0 0;
    line-height: 1.3;
}
.ef-destaque-main-meta {
    color: var(--ef-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}
.ef-destaque-main-meta span + span::before {
    content: " | ";
    margin: 0 6px;
}
/* Badge + meta na mesma linha */
.ef-destaque-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

/* Posts laterais (direita) - imagem + info lado a lado sem card */
.ef-destaque-lateral {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.ef-destaque-side {
    display: flex;
    gap: 16px;
    text-decoration: none;
    align-items: flex-start;
}
.ef-destaque-side:hover h5 {
    color: var(--ef-rose);
}
.ef-destaque-side-img {
    width: 180px;
    min-width: 180px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.ef-destaque-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ef-destaque-side-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}
.ef-destaque-side-info h5 {
    color: var(--ef-dark);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s;
}
.ef-badge-sm {
    font-size: 0.7rem;
    padding: 3px 12px;
    align-self: flex-start;
}

/* Newsletter dentro do bloco azul */
.ef-newsletter-home {
    padding: 40px 0;
    margin-top: 50px;
}
.ef-newsletter-home .container {
    /* herda do pai */
}

/* Placeholder para posts sem imagem */
.ef-img-placeholder {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
    font-weight: 700;
    height: 340px;
    border-radius: 10px;
}
.ef-img-placeholder-sm {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 700;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* ---- SECTIONS GENÉRICAS ---- */
.ef-home-section {
    padding: 50px 0;
}

/* ---- MAIS LIDOS ---- */
.ef-mais-lido {
    display: flex;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.2s;
}
.ef-mais-lido:hover {
    transform: translateY(-2px);
}
.ef-mais-lido-img {
    width: 90px;
    min-width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.ef-mais-lido-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ef-mais-lido-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.ef-mais-lido-info h6 {
    color: var(--ef-dark);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

/* ---- YOUTUBE ---- */
.ef-home-youtube {
    background: var(--ef-dark);
    padding: 50px 0;
    margin-top: 20px;
}
.ef-youtube-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.3;
}
.ef-youtube-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 12px;
}
.ef-youtube-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.ef-yt-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.2s;
}
.ef-yt-btn:hover {
    border-color: #fff;
    color: #fff;
}
.ef-yt-card {
    display: block;
    text-decoration: none;
}
.ef-yt-card-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.ef-yt-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.ef-yt-placeholder {
    width: 100%;
    height: 180px;
    background: #444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ef-yt-card h6 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.ef-yt-card:hover h6 {
    color: var(--ef-rose);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .ef-destaque-main-img,
    .ef-destaque-main-img img {
        min-height: 280px;
    }
    .ef-img-placeholder {
        min-height: 280px;
    }
    .ef-banner-btn {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}
@media (max-width: 768px) {
    .ef-destaque-main-img,
    .ef-destaque-main-img img {
        min-height: 220px;
    }
    .ef-img-placeholder {
        min-height: 220px;
    }
    .ef-destaque-side-img {
        width: 100px;
        min-width: 100px;
    }
    .ef-mais-lido-img {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }
    .ef-banner-btn {
        font-size: 0.7rem;
        padding: 8px 14px;
        right: 5%;
        letter-spacing: 0.5px;
        border-radius: 4px;
    }
}
@media (max-width: 480px) {
    .ef-banner-btn {
        font-size: 0.6rem;
        padding: 6px 10px;
        right: 4%;
    }
}
