/*
Theme Name: VivaSaúde
Author: ChatGPT
Description: Tema WordPress de revista de saúde (layout moderno, responsivo).
Version: 1.0
Text Domain: vivasude
*/

:root{
  --bg:#ffffff;
  --card:#ffffff;
  --soft:#f4f6ff;
  --text:#101426;
  --muted:#5a6480;
  --brand:#ed1686;
  --brand2:#453892;
  --accent:#4aa7da;
  --warn:#ffcc66;
  --border: rgba(16,20,38,.12);
  --shadow: 0 14px 34px rgba(16,20,38,.10);
  --radius: 16px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 800px at 10% 10%, rgba(74,167,218,.18), transparent 55%),
              radial-gradient(900px 700px at 90% 20%, rgba(237,22,134,.14), transparent 55%),
              radial-gradient(900px 700px at 50% 100%, rgba(69,56,146,.12), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}
a{color:inherit; text-decoration:none}
.container{max-width:1180px; margin:0 auto; padding:0 18px}

/* Header */
header{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px}
.logo{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display:grid; place-items:center;
  box-shadow: 0 10px 25px rgba(237,22,134,.10);
}
.navlinks{display:flex; gap:16px; align-items:center; color:var(--muted); flex-wrap:wrap}
.navlinks a{padding:8px 10px; border-radius:12px; transition:.18s ease}
.navlinks a:hover{background: rgba(16,20,38,.04); color:var(--text)}
.actions{display:flex; gap:10px; align-items:center}
.input{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  background: rgba(16,20,38,.04);
  border:1px solid var(--border);
  border-radius:14px;
  min-width: 240px;
}
.input input{
  width:100%;
  border:none; outline:none; background:transparent;
  color:var(--text); font-size:14px;
}
.btn{
  border:none; cursor:pointer;
  border-radius:14px;
  padding:10px 12px;
  color:var(--bg);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  font-weight:800;
  box-shadow: 0 14px 30px rgba(69,56,146,.18);
  transition:.18s ease;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{transform: translateY(-1px)}
.ghost{
  background: rgba(16,20,38,.04);
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:none;
}

/* Hero */
.hero{padding:34px 0 10px}
.heroGrid{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; align-items:stretch}
.heroMain{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,246,255,.92));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
  overflow:hidden;
  position:relative;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(16,20,38,.04);
  border:1px solid var(--border);
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}
.heroTitle{
  margin:14px 0 6px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height:1.1;
  letter-spacing:-.6px;
  font-weight:900;
}
.heroDesc{color:var(--muted); max-width: 62ch}
.heroMeta{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.chip{
  padding:8px 10px;
  border-radius: 14px;
  background: rgba(237,22,134,.10);
  border:1px solid rgba(237,22,134,.22);
  color:#ffffff;
  font-weight:700;
  font-size:13px;
}
.chip.blue{
  background: rgba(69,56,146,.10);
  border:1px solid rgba(69,56,146,.22);
  color:#101426;
}
.heroMain::after{
  content:"";
  position:absolute; inset:auto -40% -60% auto;
  width:420px; height:420px;
  background: radial-gradient(circle at 30% 30%, rgba(237,22,134,.28), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(74,167,218,.24), transparent 62%);
  transform: rotate(15deg);
  opacity:.9;
}
.heroSide{display:grid; gap:16px}
.sideCard{
  background: rgba(16,20,38,.03);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.sideTitle{font-weight:900; margin:0 0 8px; letter-spacing:-.3px}
.list{display:grid; gap:10px; margin-top:10px}
.mini{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(15,26,48,.6);
  transition:.18s ease;
}
.mini:hover{transform: translateY(-1px); background: rgba(15,26,48,.85)}
.dot{
  width:10px; height:10px; border-radius:999px;
  margin-top:5px;
  background: var(--warn);
  box-shadow: 0 0 0 6px rgba(255,204,102,.10);
  flex:0 0 auto;
}
.mini h4{margin:0; font-size:14px}
.mini p{margin:3px 0 0; color:var(--muted); font-size:13px}

/* Sections */
section{padding:18px 0}
.sectionHead{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:14px 0 10px}
.sectionHead h2{margin:0; font-size:20px; letter-spacing:-.3px}
.time{color:var(--muted); font-size:12px; font-weight:700}
.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:14px}
.card{
  grid-column: span 4;
  background: rgba(16,20,38,.03);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  min-height: 240px;
}
.thumb{
  height:120px;
  background:
    radial-gradient(240px 140px at 20% 30%, rgba(74,167,218,.32), transparent 65%),
    radial-gradient(260px 180px at 80% 50%, rgba(237,22,134,.22), transparent 70%),
    linear-gradient(180deg, rgba(69,56,146,.10), rgba(255,255,255,.0));
  border-bottom:1px solid var(--border);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cardBody{padding:14px}
.kicker{display:flex; gap:8px; flex-wrap:wrap; align-items:center; color:var(--muted); font-size:12px; font-weight:700; margin-bottom:6px}
.badge{
  padding:6px 8px;
  border-radius: 999px;
  background: rgba(16,20,38,.04);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.card h3{margin:0 0 6px; font-size:16px; letter-spacing:-.2px; line-height:1.2}
.card p{margin:0; color:var(--muted); font-size:13px}
.cardFooter{
  margin-top:auto;
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px 14px;
  gap:10px;
}
.read{
  display:flex; align-items:center; gap:8px;
  font-weight:900;
  color:var(--text);
  padding:8px 10px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(15,26,48,.6);
  transition:.18s ease;
}
.read:hover{transform: translateY(-1px)}

/* Newsletter */
.newsletter{
  background: linear-gradient(180deg, rgba(237,22,134,.10), rgba(99,166,255,.08));
  border:1px solid rgba(16,20,38,.10);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.newsletter h3{margin:0; font-size:18px}
.newsletter p{margin:4px 0 0; color:var(--muted)}
.newsletter form{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.newsletter input{
  min-width: 260px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.85);
  color:var(--text);
  outline:none;
}

/* Footer */
footer{
  padding:24px 0 40px;
  color:var(--muted);
  border-top:1px solid var(--border);
  margin-top: 18px;
}
.foot{display:flex; gap:14px; flex-wrap:wrap; justify-content:space-between; align-items:flex-start}
.cols{display:flex; gap:18px; flex-wrap:wrap}
.col a{display:block; padding:6px 0; color:var(--muted)}
.col a:hover{color:var(--text)}
.note{margin-top:14px; font-size:12px; color:rgba(169,182,214,.85)}

/* Content / WP */
.content{
  background: rgba(16,20,38,.03);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.content h1, .content h2, .content h3{letter-spacing:-.3px}
.content p{color:#dbe6ff}
.wp-pager a, .wp-pager span{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  margin:4px 6px 0 0;
}
.wp-pager span{background: rgba(255,255,255,.06)}

/* Responsive */
@media (max-width: 980px){
  .heroGrid{grid-template-columns: 1fr}
  .input{min-width: 180px}
  .card{grid-column: span 6}
}
@media (max-width: 620px){
  .nav{flex-wrap:wrap}
  .actions{width:100%}
  .input{flex:1}
  .card{grid-column: span 12}
  .newsletter input{min-width: 100%}
}


/* Theme toggle (Light/Dark) */
html[data-theme="dark"]{
  --bg:#0b1220;
  --card:#0f1a30;
  --soft:#142042;
  --text:#e8eefc;
  --muted:#a9b6d6;
  --border: rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Icons inherit site brand color */
.icon{
  width:18px;
  height:18px;
  display:inline-block;
  vertical-align:-3px;
  color: var(--brand);
}
.icon svg{width:100%; height:100%}
