/* ═══════════════════════════════════════════════════════════
   Home — Mark 1 Child (EVblog)
   Polimento magazine + integração com anúncios parallax
   (plugin evblog-ads-suite). Carregado somente na home.
   ═══════════════════════════════════════════════════════════ */

/* ── Respiro dos slots de anúncio entre seções ── */
.evad--billboard,
.evad--leaderboard,
.evad-partner-grid {
    margin-block: 40px;
}

.evad-reveal {
    margin-block: 48px;
}

/* ── Magazine: cabeçalho da home ── */
.home-lead {
    max-width: 760px;
    margin: -16px auto 8px;
    text-align: center;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--news-text-soft, #94A3B8);
}

.home-h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -.01em;
    margin: 8px 0 28px;
    padding-bottom: 14px;
    background: linear-gradient(92deg, #00A86B 0%, #00D4FF 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid var(--news-border, #334155);
    position: relative;
}

.home-h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #00A86B 0%, #00D4FF 100%);
}

[data-theme="light"] .home-h1 {
    background: linear-gradient(92deg, #00A86B 0%, #0077C8 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Magazine: seções ── */
.home-main {
    padding: 16px 0 32px;
}

.latest-news,
.tools-section,
.ev-market-section {
    margin-top: 28px;
}

.section-title {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    letter-spacing: -.01em;
    margin-bottom: 14px;
    padding-bottom: 8px;
}

.section-title .icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 107, .12);
    border: 1px solid rgba(0, 168, 107, .25);
    border-radius: 10px;
    font-size: 1.1rem;
    margin-right: 2px;
}

/* ── Magazine: cards de notícia com leve elevação ── */
.viral-card {
    transition: transform .22s, box-shadow .25s, border-color .25s;
    border: 1px solid transparent;
}

.viral-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .45);
    border-color: rgba(0, 212, 255, .3);
}

.viral-card-category {
    letter-spacing: .04em;
}

/* ── Preços ao vivo: realce magazine ── */
.live-prices-section {
    scroll-margin-top: 90px;
}

.live-badge {
    animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, .35); }
    50%      { box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
}

/* ── FAQ magazine ── */
.home-faq details {
    transition: border-color .2s, background .2s;
}

.home-faq details:hover {
    border-color: rgba(0, 212, 255, .4);
}

.home-faq summary {
    font-size: .95rem;
}

/* ── Preços ao Vivo: grade de cards (magazine, estilo InsideEVs) ── */
.ev-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .ev-model-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .ev-model-grid { grid-template-columns: repeat(2, 1fr); }
}

.ev-model-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--news-surface, #1E293B);
    border: 1px solid var(--news-border, #334155);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .22s, box-shadow .25s, border-color .25s;
    box-shadow: var(--news-shadow, 0 1px 3px rgba(0, 0, 0, .3));
}

.ev-model-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, .4);
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5);
}

.ev-model-card.is-top {
    border-color: rgba(0, 168, 107, .35);
}

.ev-model-card__img {
    width: 100%;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    display: block;
    background: var(--news-bg, #0F172A);
}

.ev-model-card__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A1628 0%, #12243F 100%);
    color: rgba(255, 255, 255, .12);
    font-size: 3rem;
    font-weight: 900;
}

.ev-model-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(92deg, #00A86B 0%, #00C853 100%);
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 4px 12px rgba(0, 168, 107, .35);
}

.ev-model-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    flex: 1;
}

.ev-model-card__brand {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--news-accent, #00D4FF);
}

.ev-model-card__name {
    font-size: .98rem;
    font-weight: 800;
    color: var(--news-text, #F1F5F9);
    margin: 0;
    line-height: 1.25;
}

.ev-model-card__price {
    font-size: 1.15rem;
    font-weight: 900;
    color: #00A86B;
    margin: 4px 0 8px;
    letter-spacing: -.02em;
}

.ev-model-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ev-model-card__specs span {
    font-size: .72rem;
    font-weight: 600;
    color: var(--news-text-soft, #94A3B8);
    background: rgba(0, 168, 107, .1);
    border: 1px solid rgba(0, 168, 107, .2);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.ev-model-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--news-border, #334155);
}

.ev-model-card__cons {
    font-size: .72rem;
    color: var(--news-text-muted, #64748B);
}

.ev-model-card__cta {
    font-size: .78rem;
    font-weight: 700;
    color: var(--news-accent, #00D4FF);
    white-space: nowrap;
}

.ev-model-card:hover .ev-model-card__cta {
    color: #00A86B;
}

@media (max-width: 640px) {
    .ev-model-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .ev-model-card__body {
        padding: 12px 12px 14px;
    }

    .ev-model-card__price {
        font-size: 1.1rem;
    }

    .ev-model-card__specs span {
        font-size: .66rem;
        padding: 2px 7px;
    }

    .ev-model-card__cons {
        display: none;
    }
}

/* ── Layout magazine: coluna principal + barra lateral direita ── */
.home-mag {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.home-mag__main {
    min-width: 0;
}

.home-mag__side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 84px;
}

@media (max-width: 1024px) {
    .home-mag {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-mag__side {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

/* ── Sidebar: box "Mais Lidas" magazine ── */
.home-mag__side .sidebar-popular {
    background: var(--news-surface, #1E293B);
    border: 1px solid var(--news-border, #334155);
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: var(--news-shadow, 0 1px 3px rgba(0, 0, 0, .3));
}

.home-mag__side .sidebar-popular h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--news-text, #F1F5F9);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 168, 107, .4);
}

.home-mag__side .compact-card-img {
    width: 92px;
    height: 66px;
}

.home-mag__side .compact-card-title {
    font-size: .8rem;
    line-height: 1.35;
}

/* ── Sidebar: CTAs internos (magazine) ── */
.side-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--news-surface, #1E293B);
    border: 1px solid var(--news-border, #334155);
    border-radius: 14px;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.side-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, .45);
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5);
}

.side-cta--quiz {
    background: linear-gradient(135deg, rgba(0, 168, 107, .14) 0%, rgba(0, 212, 255, .08) 100%);
    border-color: rgba(0, 168, 107, .35);
}

.side-cta__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(0, 168, 107, .12);
    border: 1px solid rgba(0, 168, 107, .25);
    border-radius: 12px;
}

.side-cta__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-cta__body strong {
    font-size: .92rem;
    font-weight: 800;
    color: var(--news-text, #F1F5F9);
}

.side-cta__body span {
    font-size: .76rem;
    color: var(--news-text-soft, #94A3B8);
}

/* ── Cards de notícia: altura uniforme + rodapé alinhado ── */
.viral-card {
    display: flex;
    flex-direction: column;
}

.viral-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.viral-card-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.viral-card-category {
    letter-spacing: .05em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.viral-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(0, 0, 0, .28));
    pointer-events: none;
}

.viral-card:hover .viral-card-image img {
    transform: scale(1.06);
}

/* ── Alinhamento de largura dos itens ── */
.live-prices-section,
.latest-news,
.tools-section,
.evad--billboard,
.evad--leaderboard,
.evad-partner-grid,
.home-faq {
    max-width: 100%;
}

/* ── Sidebar: Ferramentas Zero (grade compacta) ── */
.side-tools {
    background: var(--news-surface, #1E293B);
    border: 1px solid var(--news-border, #334155);
    border-radius: 14px;
    padding: 18px;
}

.side-tools__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--news-text, #F1F5F9);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 168, 107, .4);
}

.side-tools__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.side-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 44px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--news-border, #334155);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .15s;
}

.side-tool:hover {
    border-color: rgba(0, 212, 255, .45);
    background: rgba(0, 212, 255, .06);
    transform: translateY(-1px);
}

.side-tool span {
    font-size: 1rem;
    flex-shrink: 0;
}

.side-tool strong {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--news-text, #F1F5F9);
}

@media (max-width: 640px) {
    .side-tools__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ── Sidebar: Evergreen (conteúdo atemporal aleatório) ── */
.side-evergreen {
    background: var(--news-surface, #1E293B);
    border: 1px solid var(--news-border, #334155);
    border-radius: 14px;
    padding: 18px;
}

.side-evergreen__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--news-text, #F1F5F9);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 168, 107, .4);
}

.side-evergreen__list {
    display: flex;
    flex-direction: column;
}

.side-evergreen__item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--news-border, #334155);
    text-decoration: none;
}

.side-evergreen__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-evergreen__item img {
    width: 84px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--news-bg, #0F172A);
}

.side-evergreen__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.side-evergreen__meta strong {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--news-text, #F1F5F9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-evergreen__meta small {
    font-size: .68rem;
    color: var(--news-text-muted, #64748B);
}

.side-evergreen__item:hover strong {
    color: var(--news-primary, #00A86B);
}

/* ── UX mobile: alvos de toque, respiro e tipografia ── */
@media (max-width: 640px) {
    .home-h1 {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .section-title {
        padding-bottom: 10px;
    }

    .viral-card-category {
        font-size: .72rem;
        padding: 6px 12px;
    }

    .quick-tag,
    .tool-card,
    .side-cta,
    .vp-ai-ask__chips button {
        min-height: 44px; /* alvo de toque confortável */
    }

    .side-cta {
        align-items: center;
    }

    .side-evergreen__item img {
        width: 92px;
        height: 66px;
    }

    .latest-news,
    .tools-section,
    .ev-market-section {
        margin-top: 28px;
    }

    .ev-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .live-badge { animation: none; }
    .viral-card { transition: none; }
    .viral-card:hover { transform: none; }
    .ev-model-card { transition: none; }
    .ev-model-card:hover { transform: none; }
    .side-cta { transition: none; }
    .side-cta:hover { transform: none; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .evad--billboard,
    .evad--leaderboard,
    .evad-partner-grid {
        margin-block: 28px;
    }

    .evad-reveal {
        margin-block: 32px;
    }

    .home-main {
        padding-top: 20px;
    }
}
