/*
Theme Name: LogicHQ
Theme URI: https://logichq.abelrs.com.br
Author: AGENCIA
Description: Tema proprio do portal LogicHQ — your AI news base. Dark-first, UIKIT01 (navy/azul/Inter).
Version: 0.1
Text Domain: logichq
*/

:root{
  --bg:#0D0F1A; --bg2:#0A0C14; --surface:#151826; --surface2:#1B2030;
  --line:#252A3D; --line2:#2E3550;
  --text:#E6E8EE; --muted:#9AA3B2; --dim:#6B7384;
  --accent:#2563EB; --accent2:#3B82F6; --accent-dk:#1E40AF;
  --radius:14px; --radius-sm:10px;
  --maxw:1280px;
  --grad:linear-gradient(135deg,#3B82F6,#1E40AF);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:Inter,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent2); text-decoration:none}
a:hover{color:#fff}
img{max-width:100%; height:auto; display:block}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 20px}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(10,12,20,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex; align-items:center; gap:18px; height:68px}
.brand{display:flex; align-items:center; gap:11px}
.brand img{height:34px; width:auto}
.brand .wm{font-weight:800; font-size:22px; letter-spacing:-.02em; line-height:1}
.brand .wm b{color:#fff} .brand .wm span{color:var(--accent2)}
.nav{display:flex; gap:2px; flex-wrap:nowrap; margin-left:auto}
.nav a{
  color:var(--muted); font-size:13px; font-weight:500; white-space:nowrap;
  padding:7px 9px; border-radius:8px;
}
.nav a:hover{color:#fff; background:var(--surface)}
.nav .current-menu-item a,.nav .current_page_item a{color:#fff; background:var(--surface)}
.menu-toggle{display:none}
.lang-switch{margin-left:14px; white-space:nowrap; font-size:13px; font-weight:600;
  color:var(--text); background:var(--surface); border:1px solid var(--line);
  padding:8px 13px; border-radius:8px}
.lang-switch:hover{color:#fff; border-color:var(--accent)}
@media(max-width:680px){.lang-switch{margin-left:auto; padding:7px 10px; font-size:12px}}

/* ---------- Ad slots ---------- */
.ad{
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:repeating-linear-gradient(45deg,#11131f,#11131f 12px,#0e1019 12px,#0e1019 24px);
  border:1px dashed var(--line2); border-radius:var(--radius-sm);
  color:var(--dim); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  margin:22px 0;
}
.ad small{display:block; color:#4a5167; font-size:10px; margin-top:4px; letter-spacing:.04em}
.ad-top{min-height:90px}
.ad-infeed{min-height:120px}
.ad-inarticle{min-height:250px}
.ad-sidebar{min-height:250px}
.ad-footer{min-height:90px; margin:0}

/* ---------- Hero ---------- */
.hero{position:relative; height:clamp(380px,52vw,560px); overflow:hidden; border-bottom:1px solid var(--line)}
.hero-slide{position:absolute; inset:0; opacity:0; transition:opacity 1s ease; background-size:cover; background-position:center}
.hero-slide.active{opacity:1}
.hero::after{content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(13,15,26,.15) 0%,rgba(13,15,26,.55) 55%,rgba(13,15,26,.96) 100%)}
.hero-content{position:absolute; left:0; right:0; bottom:0; z-index:2}
.hero-content .wrap{padding-bottom:40px}
.hero .pill{display:inline-block; background:var(--accent); color:#fff; font-size:12px;
  font-weight:700; padding:5px 11px; border-radius:30px; letter-spacing:.04em; text-transform:uppercase}
.hero h1{font-size:clamp(26px,3.4vw,44px); line-height:1.12; letter-spacing:-.02em; margin:14px 0 8px; max-width:820px}
.hero h1 a{color:#fff}
.hero .dek{color:#cfd5e2; max-width:680px; font-size:clamp(15px,1.4vw,18px)}
.hero .meta{color:var(--muted); font-size:13px; margin-top:12px}
.hero-dots{position:absolute; right:24px; bottom:24px; z-index:3; display:flex; gap:8px}
.hero-dots button{width:9px; height:9px; border-radius:50%; border:0; background:#54607f; cursor:pointer}
.hero-dots button.on{background:var(--accent2); width:24px; border-radius:5px}

/* ---------- Layout grid ---------- */
.layout{display:grid; grid-template-columns:1fr 320px; gap:40px; padding:40px 0}
.section-head{display:flex; align-items:center; gap:12px; margin:6px 0 18px}
.section-head h2{font-size:20px; margin:0; letter-spacing:-.01em}
.section-head .bar{width:4px; height:20px; background:var(--grad); border-radius:3px}
.section-head a.more{margin-left:auto; font-size:13px; color:var(--muted)}

.cards{display:grid; grid-template-columns:repeat(2,1fr); gap:22px}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:.18s}
.card:hover{border-color:var(--line2); transform:translateY(-2px)}
.card .thumb{aspect-ratio:16/9; position:relative; overflow:hidden; background:var(--surface2)}
.card .thumb img{width:100%; height:100%; object-fit:cover}
.card .ph{position:absolute; inset:0; display:flex; align-items:flex-end; padding:14px;
  background:radial-gradient(120% 120% at 80% 0%,rgba(37,99,235,.32),transparent 55%),linear-gradient(160deg,#141a2c,#0c0f1a)}
.card .ph span{font-weight:800; font-size:15px; color:#cdd5e6; opacity:.6; letter-spacing:-.01em}
.card .body{padding:16px 18px 20px; display:flex; flex-direction:column; flex:1}
.card .cat{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--accent2)}
.card h3{font-size:17px; line-height:1.3; margin:8px 0 8px; letter-spacing:-.01em}
.card h3 a{color:var(--text)} .card h3 a:hover{color:#fff}
.card p{color:var(--muted); font-size:14px; margin:0 0 14px}
.card .meta{margin-top:auto; color:var(--dim); font-size:12px}

/* feature row (large + small) */
.feature{grid-column:1/-1; display:grid; grid-template-columns:1.6fr 1fr; gap:22px; margin-bottom:8px}
@media(max-width:760px){.feature{grid-template-columns:1fr}}

/* ---------- Sidebar ---------- */
.sidebar{display:flex; flex-direction:column; gap:26px}
.widget{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px}
.widget h4{margin:0 0 14px; font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted)}
.widget.no-bg{background:transparent; border:0; padding:0}
.rlist{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px}
.rlist li{display:flex; gap:12px}
.rlist .n{color:var(--accent2); font-weight:800; font-size:18px; min-width:22px}
.rlist a{color:var(--text); font-size:14px; line-height:1.35}
.rlist a:hover{color:#fff}
.cats-list{display:flex; flex-wrap:wrap; gap:8px}
.cats-list a{background:var(--surface2); border:1px solid var(--line); color:var(--muted);
  font-size:13px; padding:6px 11px; border-radius:30px}
.cats-list a:hover{color:#fff; border-color:var(--accent)}

/* ---------- Single ---------- */
.article{max-width:760px; margin:0 auto; padding:40px 0}
.article .pill{display:inline-block; background:var(--accent); color:#fff; font-size:12px; font-weight:700;
  padding:5px 11px; border-radius:30px; text-transform:uppercase; letter-spacing:.04em}
.article h1{font-size:clamp(28px,3.6vw,42px); line-height:1.15; letter-spacing:-.02em; margin:16px 0 10px}
.article .byline{color:var(--muted); font-size:14px; border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:8px}
.article .content{font-size:17.5px; line-height:1.78}
.article .content p{margin:0 0 22px}
.article .content h2{font-size:24px; margin:38px 0 14px; letter-spacing:-.01em}
.article .content h3{font-size:20px; margin:30px 0 12px}
.article .content a{text-decoration:underline; text-underline-offset:3px}
.article .content ul,.article .content ol{margin:0 0 22px; padding-left:22px}
.article .content blockquote{margin:0 0 22px; padding:14px 20px; border-left:3px solid var(--accent);
  background:var(--surface); color:#cfd5e2; border-radius:0 8px 8px 0}
.article .featured{aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; margin:18px 0 28px; border:1px solid var(--line)}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line); background:var(--bg2); margin-top:30px}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:30px; padding:46px 0 30px}
.footer-grid img{height:44px; margin-bottom:14px}
.footer-grid p{color:var(--muted); font-size:14px; max-width:320px}
.footer-grid h5{font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 0 14px}
.footer-grid ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px}
.footer-grid ul a{color:var(--text); font-size:14px}
.copyright{border-top:1px solid var(--line); padding:18px 0; color:var(--dim); font-size:13px; text-align:center}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .layout{grid-template-columns:1fr}
  .sidebar{flex-direction:row; flex-wrap:wrap}
  .sidebar .widget{flex:1; min-width:240px}
}
@media(max-width:1140px){
  .nav{display:none; position:absolute; top:68px; left:0; right:0; background:var(--bg2);
    flex-direction:column; flex-wrap:nowrap; padding:10px 20px; border-bottom:1px solid var(--line); margin-left:0}
  .nav.open{display:flex}
  .nav a{padding:11px 8px; font-size:14px}
  .menu-toggle{display:block; margin-left:auto; background:var(--surface); border:1px solid var(--line);
    color:#fff; width:40px; height:38px; border-radius:8px; font-size:18px; cursor:pointer}
  .lang-switch{margin-left:12px}
}
@media(max-width:680px){
  .cards{grid-template-columns:1fr}
  .sidebar{flex-direction:column}
  .lang-switch{margin-left:auto; padding:7px 10px; font-size:12px}
}
