/* =========================================
   OLHAPAUTA — HOME.CSS
   Versão Final: Hero + Globo + Magazine + Grid
   Patch ADS + CONTRASTE + TAP TARGET + CLS
========================================= */

/* Escopo geral */
.home .site-main, .blog .site-main { padding: 36px 0 54px; }

/* =====================================================
   ADS (CLS FIX)
   Reserva espaço antes do AdSense renderizar
===================================================== */
.home .banner-area, .blog .banner-area {
  display: block;
  width: 100%;
  margin: 10px 0 22px;
}

.home .publi-label, .blog .publi-label {
  display: block;
  text-align: center;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 6px 0 10px;

  /* CONTRASTE: não use opacity em fonte pequena */
  opacity: 1;
  color: rgba(15,23,42,.78);
  font-weight: 800;
}

/* IMPORTANTÍSSIMO: AdSense às vezes falha dentro de flex */
.home .banner-box-large, .blog .banner-box-large {
  display: block;
  width: 100%;
  text-align: center;

  /* CLS: reserva altura para o slot principal */
  min-height: 250px;
  background: transparent;
}

/* garante que o ins/iframe não colapse + CLS */
.home .banner-box-large .adsbygoogle,
.blog .banner-box-large .adsbygoogle,
.home .banner-box-large ins,
.blog .banner-box-large ins,
.home .banner-box-large iframe,
.blog .banner-box-large iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;

  /* CLS: segura altura antes de carregar */
  min-height: 250px;
}

/* Mobile: normalmente o slot é menor */
@media (max-width: 900px){
  .home .banner-box-large, .blog .banner-box-large { min-height: 120px; }
  .home .banner-box-large .adsbygoogle,
  .blog .banner-box-large .adsbygoogle,
  .home .banner-box-large ins,
  .blog .banner-box-large ins,
  .home .banner-box-large iframe,
  .blog .banner-box-large iframe { min-height: 120px; }
}

/* =====================================================
   HERO (1+4)
===================================================== */
.home .featured-grid, .blog .featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  --side-gap: 14px;
  --mini-h: 250px;
}

.home .featured-side, .blog .featured-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--side-gap);
}

/* Card Base */
.home .post-card, .blog .post-card,
.home a.post-card, .blog a.post-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.home .post-card:hover, .blog .post-card:hover {
  border-color: rgba(15,23,42,0.18);
  background: var(--surface, #ffffff);
  transform: translateY(-1px);
}

.home .post-card .thumb, .blog .post-card .thumb {
  position: relative;
  width: 100%;
  background: var(--surface-2);
}

.home .post-card .thumb img, .blog .post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home .post-card .overlay, .blog .post-card .overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}

/* Badge base (caso apareça fora do hero também) */
.home .badge, .blog .badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1;
}

.home .badge.badge--destaque, .blog .badge.badge--destaque {
  background: #e53935;
  color: #fff;
  margin-bottom: 12px;
}

/* Destaque Hero */
.home .post-card--featured .thumb { height: calc(var(--mini-h) * 2 + var(--side-gap)); }

.home .post-card--featured .overlay {
  padding: 22px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.90) 0%,
    rgba(0,0,0,.45) 60%,
    rgba(0,0,0,0) 100%
  );
}

.home .post-card--featured .title {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0;
  color: #fff;
}

/* Minis Hero */
.home .post-card--mini .thumb { height: var(--mini-h); }

.home .post-card--mini .overlay {
  display: block !important;
  padding: 16px 14px;
  min-height: 120px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.62) 55%,
    rgba(0,0,0,0) 100%
  );
}

/* kicker genérico (para onde ele aparecer fora do mini) */
.home .kicker, .blog .kicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.82);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
}

/* kicker no mini continua vermelho */
.home .post-card--mini .kicker {
  background: #e53935;
  color: #fff;
  border: 0;
  padding: 6px 10px;
  border-radius: 7px;
  min-height: 0;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 900;
  margin-bottom: 12px;
}

.home .post-card--mini .title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.22;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  color: #fff;
}

/* Desktop Grande */
@media (min-width:1200px){
  .home .featured-grid, .blog .featured-grid { --mini-h: 273px; }
}

/* =====================================================
   CABEÇALHOS DE SEÇÃO
===================================================== */
.home .home-section {
  margin-top: 36px;
  padding-bottom: 18px;
}

.home .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.home .section-title {
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 800;
  border-left: 4px solid #e53935;
  padding-left: 12px;
  line-height: 1.1;
}

/* Ver tudo: contraste + toque */
.home .section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 11px;
  text-transform: uppercase;

  color: rgba(15,23,42,.80);
  font-weight: 900;

  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  background: #fff;
}

.home .section-more:hover {
  color: var(--text);
  border-color: rgba(15,23,42,0.22);
  background: rgba(15,23,42,0.03);
}

/* =========================
   CORES DAS LINHAS POR SEÇÃO
========================= */
.home .home-section.section-slug-esportes .section-title,
.home .home-section.section-slug-esporte .section-title{
  border-left-color: #22c55e;
}

.home .home-section.section-slug-saude .section-title,
.home .home-section.section-slug-saúde .section-title{
  border-left-color: #60a5fa;
}

.home .home-section.section-slug-esportes .section-more:hover,
.home .home-section.section-slug-esporte .section-more:hover{
  border-color: rgba(34,197,94,.55);
}

.home .home-section.section-slug-saude .section-more:hover,
.home .home-section.section-slug-saúde .section-more:hover{
  border-color: rgba(96,165,250,.55);
}

/* ========================================================
   LAYOUT 1: TRIO GLOBO (3 Colunas)
======================================================== */
.globo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.globo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.globo-head {
  border-bottom: 2px solid var(--cat-color, #e53935);
  padding-bottom: 8px;
  margin-bottom: 5px;
}

.globo-title a {
  font-size: 20px;
  text-transform: uppercase;
  color: var(--cat-color, #e53935);
  font-weight: 900;
  text-decoration: none;
}

.globo-hero { text-decoration: none; }

.globo-hero .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface-2);
}

.globo-hero .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.globo-hero:hover .thumb img { transform: scale(1.05); }

.globo-hero .hero-title {
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  margin: 0;
}

.globo-hero:hover .hero-title { color: var(--cat-color); }

.globo-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.globo-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  text-decoration: none;
  align-items: start;
}

.globo-item .item-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}

.globo-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTRASTE: subir um pouco o texto da lista */
.globo-item .item-title {
  font-size: 14px;
  line-height: 1.3;
  color: rgba(15,23,42,.80);
  font-weight: 700;
  margin: 0;
}

.globo-item:hover .item-title { color: var(--text); }

/* MAIS ...: contraste + toque */
.globo-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;

  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--cat-color);
  opacity: 1;
  text-decoration: none;
}

.globo-more:hover {
  text-decoration: underline;
}

/* ========================================================
   LAYOUT 2: MAGAZINE
======================================================== */
.layout-magazine{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Destaque */
.mag-main .mag-big .thumb{ height: 340px; }

.mag-main .main-title{
  font-size: 24px;
  line-height: 1.2;
  margin-top: 10px;
  color: var(--text);
}

/* Lista Lateral */
.mag-side{
  display:flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  justify-content: flex-start;
}

.mag-small{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration:none;
  align-items: center;

  height: auto;
  min-height: 72px;
}

.mag-small:hover{
  background: rgba(15,23,42,0.02);
  border-color: rgba(15,23,42,0.18);
}

.mag-small .thumb{
  width: 110px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}

.mag-small .thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.mag-small .small-title{
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================
   LAYOUT 3: GRID-4
======================================================== */
.layout-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.card-vertical .card-thumb-small { height: 280px; }

.card-vertical .compact-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0));
  padding: 15px;
}

.card-vertical .grid-title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

/* RESPONSIVIDADE (Mobile) */
@media (max-width: 900px) {
  .home .featured-grid, .blog .featured-grid { grid-template-columns: 1fr; }
  .globo-grid { grid-template-columns: 1fr; gap: 40px; }
  .layout-magazine { grid-template-columns: 1fr; gap: 20px; }
  .mag-side { height: auto; gap: 10px; }
  .mag-small { height: auto; }
  .mag-main .mag-big .thumb { height: 250px; }

  /* Grid-4 vira 2 colunas no celular */
  .layout-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-vertical .card-thumb-small { height: 200px; }
  .card-vertical .grid-title { font-size: 13px; }
}

/* ========================================================
   ECONOMIA: destaque maior + lateral alinhada (4 itens)
======================================================== */
.home .home-section.section-slug-economia .layout-magazine{
  align-items: stretch;
  --eco-feature-h: 420px;
}

.home .home-section.section-slug-economia .mag-main .mag-big .thumb{
  height: var(--eco-feature-h);
}

.home .home-section.section-slug-economia .mag-side{
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  height: var(--eco-feature-h);
}

.home .home-section.section-slug-economia .mag-small{
  height: 100%;
  min-height: 0;
}
