/* =========================================
   OLHAPAUTA - MAIN.CSS (V3 FINALÍSSIMO)
   Visual: O SEU DESIGN APROVADO
   Correções: Menu OK, Lista Mobile OK, Destaque Mobile Preenchido
   Fonte: Inter LOCAL (sem Google Fonts)
========================================= */

/* --- 0. FONT FACE (INTER LOCAL) --- */
@font-face {
  font-family: "Inter";
  src: url("../olhapauta-fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../olhapauta-fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../olhapauta-fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../olhapauta-fonts/Inter-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- 1. RESET E BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #0b0e14;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #fff !important; text-decoration: none; transition: 0.2s; }
a:hover { color: #e53935 !important; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.site-main { padding: 40px 0; }

/* --- 2. HEADER --- */
.site-header { background: rgba(11,14,20,0.98); border-bottom: 1px solid rgba(255,255,255,0.1); padding-top: 25px; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.header-top { display: flex; justify-content: center; margin-bottom: 20px; }
.site-brand a { display: flex; flex-direction: column; align-items: center; }
.brand-text { font-size: 36px; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: -1px; text-align: center; }
.brand-slogan { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: #e53935; margin-top: 4px; font-weight: 700; text-align: center; }
.custom-logo { max-height: 70px; width: auto; }

/* [FIX] Remove o botão do PHP */
.menu-toggle { display: none !important; }

.header-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 10px 0; }
.site-nav { display: flex; justify-content: center; width: 100%; }

/* [FIX] Menu Scroll Horizontal Limpo */
.menu-list {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap; /* Garante linha única */
  justify-content: center;
  white-space: nowrap; /* Texto não quebra */
  overflow-x: auto; /* Permite rolar */
  width: 100%;

  /* Esconde barra de rolagem */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu-list::-webkit-scrollbar { display: none; }

.menu-list a { font-weight: 700; font-size: 13px; text-transform: uppercase; color: #a0aec0 !important; letter-spacing: 0.5px; padding: 10px 0; position: relative; }
.menu-list a:hover { color: #fff !important; }
.menu-list a::after { content: ''; display: block; width: 0; height: 3px; background: #e53935; transition: width 0.3s; position: absolute; bottom: 0; left: 0; }
.menu-list a:hover::after { width: 100%; }

/* --- 3. BANNERS GLOBAIS --- */
.banner-area { margin-bottom: 40px; text-align: center; }
.publi-label { font-size: 9px; color: #444; text-transform: uppercase; margin-bottom: 3px; display: block; letter-spacing: 1px; }
.banner-box, .banner-box-large { width: 100%; max-width: 970px; background: #0f1218; border: 1px dashed #2a2e35; margin: 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner-box { height: 90px; }
.banner-box-large { height: 120px; }

/* --- 4. HOME: GRID HERO (DESKTOP) --- */
.div-mae-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; height: 600px; margin-bottom: 50px; }

/* Esquerda (Destaque Grande) */
.coluna-esquerda { height: 100%; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); display: flex; }
.coluna-esquerda a { display: flex; width: 100%; height: 100%; position: relative; }
.coluna-esquerda .img-wrap { width: 100%; height: 100%; position: relative; }
.coluna-esquerda img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.coluna-esquerda:hover img { transform: scale(1.03); }
.texto-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #000 10%, rgba(0,0,0,0.8) 60%, transparent 100%); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; pointer-events: none; }
.etiqueta-vermelha { background: #e53935; color: #fff; padding: 5px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 4px; margin-bottom: 12px; width: fit-content; }
.texto-overlay h1 { font-size: 34px; font-weight: 900; line-height: 1.15; margin: 0; text-shadow: 0 4px 10px rgba(0,0,0,0.9); }

/* Direita (4 Cards - Grid 2x2 Desktop) */
.coluna-direita { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 100%; }
.post-quadradinho { background: #151a23; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.post-quadradinho a { display: flex; flex-direction: column; height: 100%; width: 100%; }
.img-mini { flex: 6; width: 100%; position: relative; overflow: hidden; }
.img-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-quadradinho:hover .img-mini img { transform: scale(1.05); }
.info-mini { flex: 4; padding: 12px 15px; display: flex; flex-direction: column; justify-content: center; background: #151a23; min-width: 0; }
.categoria-item { color: #e53935; font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 4px; display: block; letter-spacing: 0.5px; }
.info-mini h3 { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- 5. HOME: EDITORIAS --- */
.editorias-wrapper { display: flex; flex-direction: column; gap: 60px; }
.cat-header { display: flex; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.cat-title { font-size: 20px; font-weight: 800; text-transform: uppercase; color: #e53935; margin-right: 15px; white-space: nowrap; }
.cat-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); margin-right: 15px; min-width: 50px; }
.ver-mais { font-size: 12px; font-weight: 700; color: #a0aec0 !important; text-transform: uppercase; }
.ver-mais:hover { color: #fff !important; }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card-horizontal { background: #151a23; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; transition: 0.2s; height: 100%; }
.card-horizontal:hover { border-color: #e53935; transform: translateY(-3px); }
.card-horizontal a { display: flex; gap: 15px; padding: 15px; height: 100%; align-items: flex-start; }
.card-h-thumb { width: 140px; height: 110px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.card-h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sem-foto { width: 100%; height: 100%; background: #222; }
.card-h-body { flex: 1; display: flex; flex-direction: column; min-width: 0; } /* min-width 0 evita estouro do flex */
.titulo-pequeno { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; color: #fff; }
.resumo-texto { font-size: 13px; color: #a0aec0; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.data-post { font-size: 11px; color: #555; margin-top: auto; font-weight: 700; }

/* --- 6. PÁGINA SINGLE, ARCHIVE, FOOTER (Padrões Mantidos) --- */
/* Single */
.single-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; margin-bottom: 60px; }
.breadcrumbs { font-size: 12px; color: #a0aec0; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; }
.breadcrumbs a { color: #a0aec0 !important; }
.breadcrumbs a:hover { color: #fff !important; }
.breadcrumbs .sep { margin: 0 8px; color: #444; }
.breadcrumbs .current { color: #e53935; }
.post-category { background: #e53935; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 15px; }
.entry-title { font-size: 38px; line-height: 1.15; font-weight: 900; margin-bottom: 20px; color: #fff; }
.entry-meta { font-size: 13px; color: #a0aec0; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.entry-meta strong { color: #fff; }
.meta-sep { margin: 0 10px; }
.entry-image { margin-bottom: 30px; border-radius: 8px; overflow: hidden; }
.entry-image img { width: 100%; height: auto; }
.entry-text { font-size: 18px; line-height: 1.8; color: #e2e8f0; }
.entry-text p { margin-bottom: 20px; }
.entry-text h2 { font-size: 24px; font-weight: 800; margin: 40px 0 20px; color: #fff; }
.entry-text h3 { font-size: 20px; font-weight: 700; margin: 30px 0 15px; color: #fff; }
.entry-text blockquote { border-left: 4px solid #e53935; padding-left: 20px; font-style: italic; color: #fff; margin: 30px 0; }
.entry-text ul, .entry-text ol { margin-bottom: 20px; padding-left: 20px; }
.entry-text li { margin-bottom: 10px; }
.entry-text a { color: #e53935 !important; text-decoration: underline; }

/* In-Content Ads */
.in-content-ad-container { margin: 40px 0; text-align: center; clear: both; }
.ad-divider { display: flex; align-items: center; justify-content: center; margin-bottom: 15px; position: relative; }
.ad-divider::before, .ad-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.ad-divider span { font-size: 10px; color: #666; text-transform: uppercase; padding: 0 15px; letter-spacing: 1px; font-weight: 700; }
.in-content-ad-box { width: 100%; min-height: 250px; background: #0f1218; border: 1px dashed #2a2e35; display: flex; align-items: center; justify-content: center; }

/* Share Buttons */
.share-box { margin: 40px 0; padding: 20px; background: #151a23; border-radius: 8px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.btn-share { padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 700; text-decoration: none !important; color: #fff !important; }
.btn-share.whatsapp { background: #25D366; }
.btn-share.facebook { background: #1877F2; }
.btn-share.twitter { background: #000; border: 1px solid #333; }

/* Related Posts */
.related-posts { margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.related-title { font-size: 20px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; color: #e53935; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card:hover h4 { color: #e53935; }
.rel-thumb { height: 120px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card h4 { font-size: 14px; line-height: 1.4; font-weight: 700; }

/* --- 7. SIDEBAR --- */
.single-sidebar { margin-top: 60px; }
.widget-box { margin-bottom: 40px; }
.widget-label { font-size: 10px; text-transform: uppercase; color: #555; display: block; margin-bottom: 5px; text-align: center; }
.widget-title { font-size: 16px; font-weight: 800; text-transform: uppercase; border-left: 3px solid #e53935; padding-left: 10px; margin-bottom: 20px; color: #fff; }
.sidebar-ad-box { width: 300px; height: 250px; background: #0f1218; border: 1px dashed #333; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.sidebar-list { display: flex; flex-direction: column; gap: 15px; }
.sidebar-item { padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-item:last-child { border: none; }
.sidebar-cat { color: #e53935; font-size: 10px; font-weight: 800; text-transform: uppercase; display: block; margin-bottom: 4px; }
.sidebar-item h5 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; color: #fff; transition: 0.2s; }
.sidebar-item:hover h5 { color: #e53935; }

/* --- 8. PÁGINA ARCHIVE (CATEGORIAS) --- */
.archive-header { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.archive-label { font-size: 12px; text-transform: uppercase; color: #a0aec0; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.archive-title { font-size: 32px; font-weight: 900; text-transform: uppercase; color: #e53935; margin: 0; }
.archive-desc { margin-top: 15px; font-size: 16px; color: #cbd5e0; line-height: 1.6; }
.archive-list { display: flex; flex-direction: column; gap: 20px; }
.archive-list .card-horizontal { border: none; border-bottom: 1px solid rgba(255,255,255,0.05); border-radius: 0; background: transparent; }
.archive-list .card-horizontal:hover { transform: none; background: rgba(255,255,255,0.02); }

/* Paginação */
.pagination-box { margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: center; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nav-links a, .nav-links span { padding: 10px 15px; background: #151a23; color: #fff; font-weight: 700; font-size: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); transition: 0.2s; }
.nav-links a:hover { background: #e53935; border-color: #e53935; }
.nav-links .current { background: #e53935; border-color: #e53935; color: #fff; }

/* --- 9. FOOTER --- */
.site-footer { background-color: #080a0f; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 80px; padding-top: 60px; font-size: 14px; color: #a0aec0; }
.footer-main { display: flex; justify-content: space-between; padding-bottom: 40px; }
.footer-info { max-width: 400px; }
.footer-logo-text { font-size: 24px; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: -1px; display: block; margin-bottom: 15px; }
.footer-desc { line-height: 1.6; color: #718096; font-size: 14px; }
.footer-nav { text-align: right; }
.footer-title { color: #fff; font-size: 14px; text-transform: uppercase; font-weight: 700; margin-bottom: 15px; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: flex-end; }
.footer-links a { color: #a0aec0 !important; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: #e53935 !important; }
.footer-copyright { border-top: 1px solid rgba(255,255,255,0.05); padding: 25px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.copy-text strong { color: #fff; }
.copy-links { display: flex; gap: 15px; }
.copy-links a { color: #718096 !important; }
.copy-links a:hover { color: #fff !important; text-decoration: underline; }
.sep { color: #333; }

/* --- 10. RESPONSIVIDADE (MOBILE & TABLET) --- */

/* TABLET (até 960px) */
@media (max-width: 960px) {
  .div-mae-grid { height: auto; grid-template-columns: 1fr; }
  .coluna-esquerda { height: 450px; }
  .coluna-direita { display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: 20px; }
  .post-quadradinho { height: 280px; }
  .cat-grid { grid-template-columns: 1fr; }
}


/* MOBILE (até 900px) - FIX FINAL */
@media (max-width: 900px) {

  /* HEADER */
  .brand-text { font-size: 28px; }
  .menu-list {
    justify-content: flex-start !important; /* Começa da esquerda para rolar */
    padding-bottom: 5px;
  }

  /* HOME GRID - FIX LISTA VERTICAL */
  .div-mae-grid {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important; /* [CRUCIAL] Deixa o container crescer para caber os 5 posts */
    margin-bottom: 30px;
  }

  /* Hero (Destaque) - FIX PREENCHIMENTO */
  .coluna-esquerda {
    width: 100% !important;
    height: 250px !important; /* Altura fixa para garantir que apareça bem */
    min-height: 250px !important;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  /* Força a imagem e o link a ocuparem 100% do espaço definido acima */
  .coluna-esquerda a,
  .coluna-esquerda .img-wrap,
  .coluna-esquerda img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Preenche sem esticar */
    display: block;
  }
  .texto-overlay { padding: 20px; }
  .texto-overlay h1 { font-size: 22px; line-height: 1.2; }

  /* Lista (Col Direita) */
  .coluna-direita {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    gap: 15px;
  }

  /* Card Lista (Horizontal) */
  .post-quadradinho {
    display: flex !important;
    flex-direction: row !important; /* Lado a lado */
    height: auto !important;
    min-height: 110px;
    background: #151a23;
    border: 1px solid rgba(255,255,255,0.1);
  }

  .post-quadradinho a {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    align-items: stretch;
  }

  /* Imagem */
  .img-mini {
    flex: 0 0 120px !important; /* Largura fixa */
    width: 120px !important;
    height: auto !important;
    min-height: 100px;
    position: relative;
  }

  .img-mini img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }

  /* Texto */
  .info-mini {
    flex: 1 !important;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: auto;
  }

  .info-mini h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    -webkit-line-clamp: 3;
  }

  /* Outros Ajustes */
  .cat-grid { grid-template-columns: 1fr; }
  .card-h-thumb { width: 100px; height: 80px; }
  .resumo-texto { display: none; }
  .titulo-pequeno { font-size: 14px; }
  .single-grid { grid-template-columns: 1fr; }
  .entry-title { font-size: 24px; }
  .footer-main, .footer-copyright { flex-direction: column; text-align: center; }
  .footer-nav { text-align: center; }
  .footer-links { justify-content: center; }
}
