/*
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; background:var(--bg2)}
body{
  margin:0; position:relative; background:var(--bg2); 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;
}
/* "folha" central: corpo de 1280px mais claro que as laterais, sombra caindo pros gutters + filete azul */
body::before{
  content:""; position:fixed; top:0; bottom:0; left:50%; transform:translateX(-50%);
  width:min(100%, var(--maxw)); z-index:-1; background:var(--bg); pointer-events:none;
  border-left:1px solid rgba(59,130,246,.16); border-right:1px solid rgba(59,130,246,.16);
  box-shadow:0 0 80px 6px rgba(0,0,0,.55);
}
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-wrap{padding-top:26px}
.hero{position:relative; height:clamp(360px,46vw,520px); overflow:hidden;
  border-radius:var(--radius); border: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-inner{padding:0 36px 38px}
.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}
}

/* ======================================================
   v2-D ADDITIONS
   ====================================================== */

/* -- LIVE chip + relógio no header ------------------- */
@keyframes lhq-pulse{0%,100%{box-shadow:0 0 0 3px rgba(34,197,94,.2)}50%{box-shadow:0 0 0 6px rgba(34,197,94,.04)}}
.live-chip{display:flex;align-items:center;gap:5px;background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.22);border-radius:999px;padding:3px 9px 3px 7px;flex-shrink:0}
.live-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2);animation:lhq-pulse 2s infinite;flex-shrink:0}
.live-label{font-size:9.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#22c55e}
.head-sep{flex:1}
.head-clock{color:var(--dim);font-size:10.5px;font-weight:700;letter-spacing:.04em;font-variant-numeric:tabular-nums;flex-shrink:0;margin-right:6px}

/* -- NOVA home: grid 2 colunas desde o topo ---------- */
.site-body{display:grid;grid-template-columns:1fr 310px;gap:26px;padding:26px 0 64px;align-items:start}
.main-col-v2{display:flex;flex-direction:column;gap:26px;min-width:0}
.sidebar-v2{position:sticky;top:80px;display:flex;flex-direction:column;gap:14px;min-width:0}

/* -- Hero 62/38 --------------------------------------- */
.hero-v2{display:grid;grid-template-columns:62fr 38fr;gap:22px;align-items:start}
.hero-kicker{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.hero-kicker .kk-chip{background:rgba(239,68,68,.18);border:1px solid rgba(239,68,68,.35);color:#fca5a5;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:3px 9px;border-radius:5px}
.hero-kicker .kk-cat{color:var(--dim);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.hero-v2-img{border-radius:var(--radius);overflow:hidden;aspect-ratio:16/9;background:var(--surface2);margin-bottom:14px;border:1px solid var(--line2)}
.hero-v2-img img{width:100%;height:100%;object-fit:cover}
.hero-v2-h1{font-size:clamp(24px,2.6vw,38px);font-weight:900;line-height:1.08;letter-spacing:-.03em;color:#fff;margin-bottom:10px}
.hero-v2-h1 em{font-style:normal;background:linear-gradient(90deg,#2563EB,#00E5FF);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-v2-dek{font-size:13.5px;color:#9eafc2;line-height:1.6;margin-bottom:14px}
.hero-v2-byline{display:flex;align-items:center;gap:8px;color:var(--dim);font-size:12px;margin-bottom:16px}
.hero-v2-byline b{color:var(--muted)}
.btn-readmore{display:inline-flex;align-items:center;gap:6px;background:var(--surface2);border:1px solid var(--line2);color:#fff;font-weight:700;font-size:13px;padding:9px 16px;border-radius:8px;transition:.15s}
.btn-readmore:hover{background:var(--accent);border-color:var(--accent);color:#fff}

/* Hero right: top stories */
.hero-stories{border-left:1px solid var(--line);padding-left:18px}
.hero-stories-lbl{font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin-bottom:12px}
.hstory{display:flex;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);text-decoration:none}
.hstory:last-child{border-bottom:none}
.hstory:hover .hs-num{color:var(--accent2)}
.hs-num{font-size:20px;font-weight:900;color:var(--line2);line-height:1;flex-shrink:0;width:26px;margin-top:1px;transition:.14s}
.hs-body{}
.hs-cat{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--accent2);margin-bottom:4px}
.hs-title{font-size:13px;font-weight:700;line-height:1.3;color:var(--text)}
.hstory:hover .hs-title{color:#fff}
.hs-meta{font-size:10px;color:var(--dim);margin-top:4px}

/* Neon divider */
.neon-div{height:2px;background:linear-gradient(90deg,#2563EB,#00E5FF);border-radius:2px}

/* -- Sidebar widgets v2 ------------------------------- */
.wgt{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.wgt-head{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;border-bottom:1px solid var(--line)}
.wgt-title{font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent2)}
.wgt-badge{font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:2px 6px;border-radius:4px}
.wgt-badge-free{background:rgba(34,197,94,.14);color:#22c55e;border:1px solid rgba(34,197,94,.28)}
.wgt-badge-pro{background:rgba(124,58,237,.14);color:#a78bfa;border:1px solid rgba(124,58,237,.28)}
.wgt-body{padding:11px 13px}
.wgt-foot{padding:8px 13px;border-top:1px solid var(--line);background:var(--surface2);display:flex;align-items:center;justify-content:space-between;font-size:11px}
.wgt-foot a{color:var(--accent2);font-weight:700}
.wgt-foot .lock{color:var(--dim);font-size:9.5px}

/* AI Tool Finder */
.finder-q{font-size:12px;font-weight:600;color:var(--text);margin-bottom:10px;line-height:1.4}
.finder-btns{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.finder-btn{font-size:11.5px;font-weight:500;color:var(--muted);background:var(--surface2);border:1px solid var(--line2);border-radius:7px;padding:7px 11px;text-align:left;cursor:pointer;transition:.15s;display:flex;align-items:center;gap:6px}
.finder-btn:hover,.finder-btn.active{border-color:#00E5FF;color:#00E5FF;background:rgba(0,229,255,.05)}
.finder-result{display:none;background:rgba(37,99,235,.09);border:1px solid rgba(37,99,235,.25);border-radius:7px;padding:9px 11px;font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:7px}
.finder-result.show{display:block}
.finder-result strong{color:#00E5FF}
.finder-cta{font-size:11px;font-weight:700;color:var(--accent2)}
.finder-cta:hover{color:#00E5FF}

/* Live Database tabs */
.db-tabs{display:flex;border-bottom:1px solid var(--line)}
.db-tab{flex:1;font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:7px 0;text-align:center;color:var(--dim);cursor:pointer;border:none;border-bottom:2px solid transparent;background:none;transition:.14s}
.db-tab.on{color:var(--accent2);border-bottom-color:var(--accent2)}
.db-pane{display:none}
.db-pane.on{display:block}
.db-item{display:flex;align-items:center;gap:8px;padding:7px 13px;border-bottom:1px solid var(--line);cursor:pointer;transition:.13s}
.db-item:last-child{border-bottom:none}
.db-item:hover{background:var(--surface2)}
.db-rank{min-width:19px;height:19px;border-radius:4px;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:900;color:var(--muted);flex-shrink:0}
.db-rank.top{background:rgba(37,99,235,.18);color:var(--accent2)}
.db-name{flex:1;font-size:11.5px;font-weight:700;color:var(--text)}
.db-cat{font-size:8.5px;font-weight:700;padding:1px 5px;border-radius:3px;background:var(--surface2);color:var(--dim)}
.db-trend{font-size:10px;font-weight:800;color:#22c55e}
.db-trend.hot{color:var(--yellow,#f5b40a)}

/* Trending widget */
.trend-item{display:flex;gap:9px;align-items:flex-start;padding:9px 13px;border-bottom:1px solid var(--line);cursor:pointer;transition:.13s}
.trend-item:last-child{border-bottom:none}
.trend-item:hover{background:var(--surface2)}
.trend-num{font-size:18px;font-weight:900;color:var(--line2);line-height:1;flex-shrink:0;width:22px;margin-top:2px;transition:.14s}
.trend-item:hover .trend-num{color:var(--accent2)}
.trend-title{font-size:12px;font-weight:700;line-height:1.35;color:var(--text)}
.trend-meta{font-size:10px;color:var(--dim);margin-top:3px}

/* Partner banner */
.partner-banner{border:1px solid var(--line2);border-radius:10px;background:linear-gradient(135deg,rgba(99,102,241,.1),rgba(37,99,235,.05));padding:13px 14px;position:relative;overflow:hidden;cursor:pointer;text-decoration:none;display:block}
.partner-banner::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#2563EB,#00E5FF)}
.pb-lbl{font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin-bottom:5px}
.pb-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pb-name{font-size:16px;font-weight:900;color:#fff;letter-spacing:-.02em}
.pb-name span{color:var(--accent2)}
.pb-cta{font-size:11px;font-weight:800;color:#fff;background:linear-gradient(90deg,#2563EB,#00E5FF);padding:5px 11px;border-radius:6px;white-space:nowrap;flex-shrink:0}
.pb-sub{font-size:11px;color:var(--muted);margin-top:5px}

/* AdSense rect (sidebar) */
.ad-rect-v2{width:100%;min-height:250px;border:1.5px dashed var(--line2);border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:rgba(20,22,38,.5)}
.ad-rect-v2 .ad-lbl{font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.ad-rect-v2 .ad-sz{font-size:11px;font-weight:700;color:var(--line2)}

/* Section header */
.sec-hd{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.sec-hd h2{font-size:18px;font-weight:900;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.sec-hd .sec-line{flex:1;height:1px;background:var(--line)}
.sec-hd a{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.sec-hd a:hover{color:var(--accent2)}

/* -- Responsive v2 ------------------------------------ */
@media(max-width:1080px){
  .site-body{grid-template-columns:1fr 270px;gap:20px}
  .hero-v2{grid-template-columns:1fr}
  .hero-stories{display:none}
}
@media(max-width:860px){
  .site-body{grid-template-columns:1fr;padding:18px 0 40px}
  .sidebar-v2{display:none}
}
@media(max-width:600px){
  .hero-v2-h1{font-size:26px}
  .head-clock{display:none}
  .live-chip{display:none}
}
