/* ============================================================
   Home — Template Editorial (Template 2)
   Primeira seção: destaque + 2 cards + barra lateral
   ============================================================ */

.home-page--editorial {
    max-width: 100%;
    overflow-x: hidden;
}

.home-page--editorial .editorial-hero-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.editorial-hero-section {
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 4vw, 2.75rem);
}

.editorial-hero-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: start;
}

@media (min-width: 992px) {
    .editorial-hero-grid {
        grid-template-columns: 1fr minmax(280px, 360px);
    }
}

/* --- Destaque principal --- */
.editorial-hero-primary {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.35rem);
}

.editorial-hero-feature {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #0c1a2e 0%, #1e3a5f 100%);
    min-height: min(52vw, 420px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

@media (min-width: 769px) {
    .editorial-hero-feature {
        min-height: 380px;
    }
}

.editorial-hero-feature-media {
    position: absolute;
    inset: 0;
}

.editorial-hero-feature-media a {
    display: block;
    height: 100%;
}

.editorial-hero-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editorial-hero-feature-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 22, 0.15) 0%,
        rgba(8, 12, 22, 0.55) 55%,
        rgba(8, 12, 22, 0.88) 100%
    );
    pointer-events: none;
}

.editorial-hero-feature a.recent-main-badge,
.editorial-hero-feature .editorial-hero-feature-title,
.editorial-hero-feature .editorial-hero-feature-meta {
    position: relative;
    z-index: 3;
}

/* Mesmas classes do template 1: cor de fundo = primária, texto = Personalizador (categoria) */
.editorial-hero-feature a.recent-main-badge {
    margin-bottom: 0.85rem;
    align-self: flex-start;
}

.editorial-hero-feature-body {
    position: relative;
    z-index: 2;
    padding: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(52vw, 420px);
}

@media (min-width: 769px) {
    .editorial-hero-feature-body {
        min-height: 380px;
    }
}

.editorial-hero-feature-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    max-width: 38ch;
}

.editorial-hero-feature-title a {
    text-decoration: none;
    color: inherit;
}

.editorial-hero-title-line {
    background: #0a0a0a;
    color: #fff;
    padding: 0.15em 0.5em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.45;
}

.editorial-hero-feature-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
}

.editorial-hero-feature-meta a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.editorial-hero-feature-meta a:hover {
    text-decoration: underline;
}

.editorial-hero-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.editorial-hero-meta-sep {
    opacity: 0.7;
}

/* --- Dois cards inferiores --- */
.editorial-hero-subrow {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vw, 1.15rem);
}

@media (min-width: 600px) {
    .editorial-hero-subrow {
        grid-template-columns: 1fr 1fr;
    }
}

.editorial-hero-subcard {
    background: var(--bg-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.editorial-hero-subcard:hover {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.editorial-hero-subcard-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.editorial-hero-subcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.editorial-hero-subcard:hover .editorial-hero-subcard-media img {
    transform: scale(1.04);
}

.editorial-hero-subcard-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Badge de categoria: igual ao template 1 (fundo primário + cor do texto das categorias) */
.editorial-hero-subcard-body .recent-side-badge {
    margin-top: 0;
    margin-bottom: 0.35rem;
    align-self: flex-start;
}

.editorial-hero-subcard-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-color);
}

.editorial-hero-subcard-title a {
    color: inherit;
    text-decoration: none;
}

.editorial-hero-subcard-title a:hover {
    color: var(--primary-color);
}

.editorial-hero-subcard-meta {
    font-size: 0.8rem;
    color: var(--text-light, #64748b);
    margin-top: auto;
}

/* --- Barra lateral --- */
.editorial-hero-aside {
    background: var(--bg-secondary, #f8fafc);
    border-radius: 14px;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.editorial-aside-heading {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-color);
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(15, 23, 42, 0.1);
}

.editorial-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.editorial-aside-list > li + li {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.editorial-aside-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.editorial-aside-item:hover {
    opacity: 0.92;
}

.editorial-aside-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.editorial-aside-item-text .recent-side-badge {
    font-size: 0.58rem;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.2rem;
    align-self: flex-start;
}

.editorial-aside-title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editorial-aside-meta {
    font-size: 0.75rem;
    color: var(--text-light, #64748b);
}

.editorial-aside-sep {
    margin: 0 0.2rem;
}

.editorial-aside-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.editorial-aside-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .editorial-hero-grid {
        grid-template-columns: 1fr;
    }
}
