/* S4IT Blog — estilos (mesma identidade do site) */
:root {
  --slate: #2F3D3E; --slate-2: #53686A; --ink: #1F2A2B; --text: #333333;
  --line: #E3E7E7; --mist: #F2F4F4; --orange: #FF6600; --orange-soft: #FFF0E6; --muted: #C9D3D3;
  --font-title: 'Montserrat', system-ui, sans-serif; --font-body: 'Open Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--text); font-family: var(--font-body); line-height: 1.6; }
a { color: var(--slate-2); } a:hover { color: var(--slate); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Header (igual ao site) */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-family: var(--font-title); font-weight: 600; font-size: 16px; }
.site-header nav a { color: var(--slate); text-decoration: none; padding: 10px 2px; border-bottom: 3px solid transparent; }
.site-header nav a[aria-current="page"] { font-weight: 800; border-bottom-color: var(--orange); }
.site-header nav a.cta { background: var(--orange); color: var(--ink); padding: 12px 22px; border-radius: 10px; border: 0; font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero do blog */
.blog-hero { background: var(--slate); color: #FFFFFF; }
.blog-hero .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); }
.blog-hero .eyebrow { color: var(--muted); }
.blog-hero h1 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; }
.blog-hero h1 span { color: var(--orange); }
.blog-hero p.lead { margin: 0; font-size: 19px; color: #E3E7E7; max-width: 640px; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 8px; }
.filters a { text-decoration: none; font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--slate); border: 1px solid var(--muted); border-radius: 999px; padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; }
.filters a.on { background: var(--slate); color: #FFFFFF; border-color: var(--slate); }

/* Grade de posts */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; padding: 24px 0 96px; }
.card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: #FFFFFF; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 36px rgba(47,61,62,.14); transform: translateY(-2px); }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--mist); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, var(--orange-soft) 55%, #F6D9C4 100%); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--ink); font-family: var(--font-title); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.badge.art { background: #FFFFFF; color: var(--slate); }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--slate); }
.card p { margin: 0; font-size: 15px; }
.meta { font-size: 13px; color: var(--slate-2); margin-top: auto; }
.empty { padding: 64px 0 120px; text-align: center; color: var(--slate-2); }
.pager { display: flex; justify-content: center; gap: 12px; padding-bottom: 96px; }
.pager a { text-decoration: none; font-family: var(--font-title); font-weight: 700; color: var(--slate); border: 1px solid var(--muted); border-radius: 10px; padding: 10px 18px; }

/* Post */
.post-head { background: var(--slate); color: #FFFFFF; }
.post-head .narrow { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.post-head a.back { color: var(--muted); text-decoration: none; font-size: 15px; }
.post-head h1 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.post-head .meta { color: var(--muted); font-size: 15px; }
.post-media { margin-top: -8px; }
.post-media .narrow { padding-top: 40px; }
.post-media img { width: 100%; border-radius: 18px; display: block; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content { font-size: 18px; padding: 40px 0 24px; }
.content h2 { font-family: var(--font-title); font-weight: 800; font-size: 28px; color: var(--slate); margin: 40px 0 12px; line-height: 1.2; }
.content h3 { font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--slate); margin: 32px 0 10px; }
.content blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); font-size: 20px; font-weight: 600; color: var(--slate); }
.content img { border-radius: 14px; margin: 16px 0; }
.content a { color: var(--slate); font-weight: 600; }

/* Compartilhar */
.share { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 16px 0 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share strong { font-family: var(--font-title); color: var(--slate); margin-right: 4px; }
.btn { font-family: var(--font-title); font-weight: 700; font-size: 15px; border-radius: 10px; padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; border: 1px solid var(--muted); background: #FFFFFF; color: var(--slate); }
.btn:hover { border-color: var(--slate); color: var(--slate); }
.btn.wa { background: #25D366; border-color: #25D366; color: #0B2E17; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.dark { background: var(--slate); border-color: var(--slate); color: #FFFFFF; }
.btn.danger { color: #9B1C1C; border-color: #F3C4C4; }
.btn.sm { padding: 8px 12px; min-height: 36px; font-size: 13px; }

/* CTA */
.cta-band { background: var(--slate); color: #FFFFFF; text-align: center; }
.cta-band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band h2 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { margin: 0; color: #E3E7E7; font-size: 18px; }
.related h2 { font-family: var(--font-title); font-weight: 800; color: var(--slate); font-size: 26px; margin: 0; }

/* Footer */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; font-size: 14px; color: var(--slate-2); }

/* ---------------- Admin ---------------- */
.admin { background: var(--mist); min-height: 100vh; }
.admin-bar { background: var(--slate); color: #FFFFFF; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.admin-bar a { color: #FFFFFF; text-decoration: none; font-family: var(--font-title); font-weight: 600; font-size: 15px; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.admin-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.admin-bar .brand img { height: 32px; background: #FFFFFF; border-radius: 6px; padding: 2px 6px; }
.panel { background: #FFFFFF; border-radius: 18px; padding: 28px; margin: 24px 0; }
.admin h1 { font-family: var(--font-title); font-weight: 800; color: var(--slate); font-size: 28px; margin: 32px 0 0; }
.notice { background: #E8F6EE; color: #14532D; border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
.error { background: #FDECEC; color: #7F1D1D; border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
table.list th { font-family: var(--font-title); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2); }
.table-wrap { overflow-x: auto; }
.pill { font-family: var(--font-title); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 3px 10px; display: inline-block; }
.pill.pub { background: #E8F6EE; color: #14532D; }
.pill.draft { background: var(--mist); color: var(--slate-2); }
.pill.sched { background: var(--orange-soft); color: #7A3300; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
form.inline { display: inline; }
label { display: block; font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--slate); margin: 18px 0 6px; }
.hint { font-size: 13px; color: var(--slate-2); margin: 4px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=datetime-local], textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 10px; background: #FFFFFF; color: var(--text);
}
input:focus, textarea:focus, select:focus, .editor:focus { outline: 3px solid rgba(255,102,0,.35); border-color: var(--orange); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--muted); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--mist); }
.toolbar button { font: 700 14px var(--font-title); min-width: 40px; min-height: 36px; border: 1px solid var(--muted); border-radius: 8px; background: #FFFFFF; color: var(--slate); cursor: pointer; }
.editor { min-height: 360px; border: 1px solid var(--muted); border-radius: 0 0 10px 10px; padding: 16px; background: #FFFFFF; font-size: 17px; overflow-y: auto; }
.editor h2 { font-family: var(--font-title); font-size: 24px; color: var(--slate); }
.editor h3 { font-family: var(--font-title); font-size: 20px; color: var(--slate); }
.editor blockquote { border-left: 4px solid var(--orange); margin: 12px 0; padding-left: 14px; font-weight: 600; }
.cover-preview { max-width: 320px; border-radius: 12px; display: block; margin-top: 10px; }
.login-box { max-width: 420px; margin: 8vh auto; background: #FFFFFF; border-radius: 18px; padding: 32px; }
.login-box img { height: 56px; display: block; margin: 0 auto 8px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
canvas#igcard { width: 100%; max-width: 420px; border-radius: 12px; box-shadow: 0 12px 30px rgba(47,61,62,.2); display: block; }
.copybox { white-space: pre-wrap; background: var(--mist); border-radius: 12px; padding: 14px; font-size: 15px; }
