/*
Theme Name: Se Liga Brazil
Theme URI: https://seligabrazil.com
Author: Se Liga Brazil
Description: Tema portal/curiosidades com destaque, em alta, categorias e grid responsivo.
Version: 1.0.0
License: GPLv2 or later
Text Domain: seliga-brazil
*/

:root{
  --green:#0B7A3E;
  --yellow:#F4C430;
  --text:#121212;
  --muted:#6B7280;
  --bg:#ffffff;
  --card:#ffffff;
  --border:rgba(0,0,0,.08);
  --shadow:0 10px 25px rgba(0,0,0,.08);
  --radius:16px;
  --max:1200px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; }

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  border-bottom:1px solid var(--border);
  background:#fff;
  position:sticky;
  top:0;
  z-index:50;
}

.header{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.02em;
}
.brand-badge{
  width:42px; height:42px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--green), #0f9a53);
  display:grid;
  place-items:center;
  color:white;
  font-weight:900;
  position:relative;
}
.brand-badge::after{
  content:"";
  width:10px;height:10px;border-radius:50%;
  background:var(--yellow);
  position:absolute;
  right:7px; top:7px;
}
.brand small{
  display:block;
  font-weight:700;
  color:var(--muted);
  letter-spacing:0;
  margin-top:-2px;
}

.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  padding:0 0 12px;
  margin:0;
  list-style:none;
}
.nav li{ margin:0; padding:0; }
.nav a{
  display:inline-block;
  font-weight:700;
  font-size:13px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{ border-color:var(--border); }
.nav .current-menu-item > a,
.nav .current_page_item > a{
  background:rgba(11,122,62,.10);
  color:var(--green);
  border-color:rgba(11,122,62,.20);
}

.search{
  display:flex; gap:8px; align-items:center;
  min-width:260px;
}
.search input{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  outline:none;
}
.search button{
  width:40px; height:40px;
  border-radius:999px;
  border:none;
  background:var(--green);
  color:white;
  cursor:pointer;
}
.search button:hover{ filter:brightness(.95); }

.section{ padding:22px 0; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:12px;
}
.section-head h2{
  margin:0;
  font-size:20px;
  letter-spacing:-.02em;
}
.section-head p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.card:hover{ box-shadow:var(--shadow); transition:.2s; }

.hero{ padding:26px 0 8px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:18px;
}

.feature{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  min-height:280px;
}
.feature-media{
  background:linear-gradient(135deg, rgba(11,122,62,.15), rgba(244,196,48,.18));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.feature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
}
.feature-body{
  padding:18px 18px 18px 0;
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content:center;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:800;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(11,122,62,.10);
  color:var(--green);
  width:fit-content;
}

.title-xl{
  font-size:30px;
  line-height:1.15;
  letter-spacing:-.03em;
  margin:0;
}
.lead{ color:var(--muted); margin:0; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:2px solid var(--green);
  background:var(--green);
  color:white;
  font-weight:800;
  width:fit-content;
}
.btn:hover{ filter:brightness(.95); }
.btn-outline{ background:transparent; color:var(--green); }

.side-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
}
.side-item{
  display:grid;
  grid-template-columns: 78px 1fr;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--border);
}
.side-item:hover{ box-shadow:var(--shadow); }
.thumb{
  width:78px; height:58px;
  border-radius:12px;
  background:rgba(0,0,0,.05);
  overflow:hidden;
}
.thumb img{ width:100%; height:100%; object-fit:cover; }
.side-item h4{ margin:0; font-size:14px; line-height:1.25; }
.meta{ color:var(--muted); font-size:12px; margin-top:4px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.post-card .media{
  height:170px;
  background:rgba(0,0,0,.05);
  overflow:hidden;
}
.post-card .media img{ width:100%; height:100%; object-fit:cover; }
.post-card .body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.post-card h3{
  margin:0;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.post-card .excerpt{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.cat{
  font-weight:800;
  font-size:12px;
  color:var(--green);
  background:rgba(11,122,62,.10);
  padding:6px 10px;
  border-radius:999px;
}
.date{ font-size:12px; color:var(--muted); }

.cats{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:12px;
}
.cat-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.cat-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--yellow);
  box-shadow:0 0 0 6px rgba(244,196,48,.25);
}

.page-title{
  margin:18px 0 0;
  font-size:30px;
  letter-spacing:-.03em;
}

.article{ padding:18px 0 26px; }
.cover{
  height:340px;
  background:rgba(0,0,0,.05);
  border-radius:var(--radius);
  overflow:hidden;
}
.cover img{ width:100%; height:100%; object-fit:cover; }
.prose{ max-width:820px; }
.prose h1{ font-size:34px; line-height:1.15; margin:0 0 10px; }
.prose h2{ margin:18px 0 8px; }
.prose p{ margin:10px 0; }

.callout{
  border:1px solid rgba(11,122,62,.25);
  background:rgba(11,122,62,.06);
  padding:14px;
  border-radius:14px;
}

.footer{
  margin-top:24px;
  border-top:1px solid var(--border);
  padding:18px 0 30px;
  color:var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
.footer a{ color:var(--muted); }
.footer a:hover{ color:var(--text); }

.pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:22px 0 40px;
}
.pagination .page-numbers{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  font-weight:800;
}
.pagination .current{
  background:rgba(11,122,62,.10);
  color:var(--green);
  border-color:rgba(11,122,62,.20);
}

/* WordPress default list paginate_links(type=list) styling */
.pagination ul{ list-style:none; display:flex; gap:10px; padding:0; margin:0; }
.pagination li{ margin:0; }

/* Responsivo */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .feature{ grid-template-columns:1fr; }
  .feature-body{ padding:18px; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .cats{ grid-template-columns:repeat(3,1fr); }
  .search{ min-width:180px; }
}
@media (max-width: 640px){
  .header{ flex-wrap:wrap; }
  .grid{ grid-template-columns:1fr; }
  .cats{ grid-template-columns:repeat(2,1fr); }
  .title-xl{ font-size:24px; }
  .search{ min-width:100%; }
}
