/*
Theme Name: AdsenseLite
Version: 1.3.0
Description: Header minimalista (logo + Início/Todos os Posts), mobile centrado, widget de posts recentes sem distorção, home com seções por categoria (opcional), AMP/CLS friendly e muito leve.
Text Domain: adsenselite
*/
:root{
  --container: 1220px;
  --gap: 18px;
  --radius: 14px;
  --bg:#fff; --ink:#0f172a; --muted:#64748b; --border:#e2e8f0; --chip:#f1f5f9; --chip-ink:#334155;
  --accent:#2563eb; --accent-ink:#0b3fb3;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0; color:var(--ink); background:var(--bg); line-height:1.65; font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Arial,"Helvetica Neue",sans-serif; overflow-x:hidden}
a{color:var(--accent); text-decoration:none}
a:hover{color:var(--accent-ink); text-decoration:underline}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--container); margin-inline:auto; padding:0 18px}
main{padding:24px 0}

/* ===== Header: logo + 2 botões ===== */
.site-header{position:sticky; top:0; z-index:60; background:rgba(255,255,255,.96); border-bottom:1px solid var(--border); backdrop-filter:saturate(180%) blur(6px)}
.header-row{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0}
.brand{display:flex; align-items:center; gap:12px}
.brand img{height:40px; width:auto}
.actions{display:flex; gap:10px; align-items:center}
.actions a{display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border-radius:999px; background:var(--chip); color:var(--chip-ink); font-weight:600}
.actions a:hover{background:#e2e8f0}
@media (max-width: 900px){
  .header-row{flex-wrap:wrap}
  .brand{justify-content:flex-start; width:100%}
  .actions{width:100%; justify-content:center}
}

/* ===== Layout ===== */
.grid{display:grid; grid-template-columns: minmax(0,1fr) 340px; gap:var(--gap)}
@media (max-width: 1100px){ .grid{grid-template-columns:1fr} }
.content{min-width:0}
.sidebar{min-width:0}

.card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:18px}
.shadow{box-shadow:0 6px 24px rgba(2,6,23,.06)}

/* ===== Post list ===== */
.post-list{display:grid; grid-template-columns:repeat(12,1fr); gap:var(--gap)}
.item{grid-column:span 6; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#fff; transition:transform .15s ease}
.item:hover{transform:translateY(-2px)}
.thumb{display:block; aspect-ratio: 16/9; overflow:hidden; background:#f8fafc}
.thumb img{width:100%; height:100%; object-fit:cover}
.meta{padding:12px 14px}
.item h2{margin:8px 0 6px; font-size:1.14rem; line-height:1.3}
.post-date{color:var(--muted); font-size:.86rem; margin-bottom:6px}
.excerpt{color:var(--chip-ink); font-size:.96rem}
@media (min-width:1200px){ .item{grid-column:span 4} }
@media (max-width:640px){ .item{grid-column:1 / -1} }

/* ===== Category Sections (opcional) ===== */
.section{margin-top:26px}
.section h2{margin:0 0 10px; font-size:1.2rem}
.section-grid{display:grid; grid-template-columns:repeat(12,1fr); gap:var(--gap)}
.section .card-mini{grid-column: span 3; border:1px solid var(--border); border-radius:12px; overflow:hidden; background:#fff}
.section .card-mini .ph{aspect-ratio:16/9; background:#f8fafc}
.section .card-mini img{width:100%; height:100%; object-fit:cover}
.section .card-mini .txt{padding:10px 12px; font-size:.95rem}
@media (max-width: 900px){ .section .card-mini{grid-column: span 6} }
@media (max-width: 640px){ .section .card-mini{grid-column: 1 / -1} }

/* ===== Single ===== */
.featured{margin-bottom:16px; border-radius:12px; overflow:hidden}
.featured .ratio{aspect-ratio: 16/9; background:#f8fafc}
.featured img{width:100%; height:100%; object-fit:cover}
article h1{font-size:clamp(1.6rem,1.2rem + 1.5vw,2.3rem); margin:.2em 0 .5em}
.entry :where(h2,h3){margin:1.6em 0 .6em}
.entry p{margin:.9em 0}
.tag-cloud a{display:inline-block; margin:4px; padding:6px 10px; background:var(--chip); border-radius:999px; color:var(--chip-ink); font-size:.9rem}

/* ===== Sidebar thumbs (sem distorção) ===== */
.widget .al-rp{display:flex; gap:10px; margin:10px 0}
.widget .al-rp .ph{flex:0 0 96px; aspect-ratio: 3/2; border-radius:8px; overflow:hidden; background:#f8fafc}
.widget .al-rp img{width:100%; height:100%; object-fit:cover} /* troque para contain se preferir sem crop */

/* ===== Ads ===== */
.adslot{width:100%; display:block; border:1px dashed var(--border); border-radius:12px; background:#f8fafc; margin:12px 0; overflow:hidden}
.adslot[data-size="leaderboard"]{min-height:90px}
.adslot[data-size="in-article"]{min-height:280px}
.adslot[data-size="rectangle"]{min-height:250px}
.adslot[data-size="multiplex"]{min-height:340px}
.adslot .adsbygoogle{max-width:100% !important}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--border); color:var(--muted); padding:24px 0}


/* === Ads responsivos sem corte e sem estourar no mobile === */

/* Ads responsivos, contidos no conteúdo */
.adslot{
  margin:12px 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:hidden;        /* impede sair do container */
  max-width:100%;
  box-sizing:border-box;
}
.adslot .adsbygoogle{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  /* não force altura aqui */
}
/* blindagem extra contra barras horizontais */
.content, .entry, .card, main.container{ overflow-x:hidden; }






















