/* Aprovação de Criativos — identidade BizMarket (Poppins local) */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/Poppins-Bold.woff2") format("woff2"); }

:root {
    --ink: #1c1c1c;
    --ink-soft: #3a3a3a;
    --muted: #6b6b73;
    --violet-900: #3a2456;
    --violet-700: #4a2c70;
    --violet-600: #5d378d;
    --violet-300: #8a6db0;
    --cyan: #2a9bc7;
    --cyan-100: #e3f4fa;
    --magenta: #e6398a;
    --magenta-700: #b8285f;
    --paper: #f2f2f2;
    --paper-2: #e8e8e8;
    --white: #fff;
    --border: #e1e1e6;
    --ok: #1f8f55;
    --warn: #b7791f;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(28, 28, 28, .06), 0 4px 14px rgba(28, 28, 28, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--violet-900); }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1.05rem; } h4 { font-size: .9rem; }
a { color: var(--violet-600); }
a:hover { color: var(--magenta-700); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.muted { color: var(--muted); font-size: .9rem; }
.pending { color: var(--magenta-700); font-weight: 500; }
.empty { color: var(--muted); text-align: center; padding: 36px 12px; }
.danger { color: var(--magenta-700) !important; }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 96px; }
.container.narrow { max-width: 560px; }
.topbar { background: var(--violet-900); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 24px; }
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.05rem; }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .9rem; }
.topbar nav a { padding: 4px 0; border-bottom: 2px solid transparent; opacity: .85; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { opacity: 1; border-color: var(--magenta); }
.who { opacity: .7; font-size: .85rem; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-header h1 { margin: 0; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-alert { border-left: 5px solid var(--magenta); }
.card h2 { margin-top: 0; }

/* Botões e formulários */
.btn { display: inline-block; background: var(--violet-600); color: #fff; border: 0; padding: 10px 18px; border-radius: 10px; font: 600 .9rem "Poppins", sans-serif; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--violet-700); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--violet-600); border: 1.5px solid var(--violet-300); }
.btn-ghost:hover { background: var(--violet-600); color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 1rem; background: var(--magenta); }
.btn-lg:hover { background: var(--magenta-700); }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet-600); font: 500 .9rem "Poppins", sans-serif; text-decoration: underline; cursor: pointer; }

label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], input[type="month"], select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: 400 .95rem "Poppins", sans-serif; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form:not(.wide) { max-width: 460px; }
.stack-form.wide { max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 200px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
legend { font-weight: 600; padding: 0 6px; color: var(--violet-700); }

/* Tabelas */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .9rem; }
.table th { background: #faf9fc; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-cancelled { opacity: .5; }
.table td.actions { white-space: nowrap; }
.table td.actions form { display: inline; margin-left: 10px; }

/* Selos */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-draft { background: #ececf0; color: #4a4a55; }
.badge-review { background: var(--cyan-100); color: #14607f; }
.badge-changes { background: #fde4ef; color: var(--magenta-700); }
.badge-design { background: #efe6f8; color: var(--violet-700); }
.badge-ready { background: #dff4e8; color: #17653c; }
.badge-published { background: #17653c; color: #fff; }
.badge-cancelled { background: #ececec; color: #777; }
.chip { display: inline-block; background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px; font-size: .78rem; color: var(--ink-soft); }
.chip-net { background: var(--violet-900); color: #fff; border-color: var(--violet-900); }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.flash-ok { background: #dff4e8; color: #17653c; }
.flash-error { background: #fde4ef; color: var(--magenta-700); }

.status-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0 0 16px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.link-box { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.link-box input { flex: 1 1 320px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.round-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; }
.round-actions form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Lâminas / uploads */
.slide-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.slide-row label { flex: 1; }
.slide-up { border: 1px dashed var(--violet-300); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.thumb { max-height: 200px; width: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--paper); }
.art-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.art-row figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.publish-card header h2 { margin-bottom: 4px; }
.publish-form { margin-top: 14px; }

/* Comentários */
.comment-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comment { border-left: 3px solid var(--violet-300); background: #faf9fc; padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: .9rem; margin-top: 8px; }
.comment-client { border-left-color: var(--magenta); background: #fff5f9; }
.comment-meta { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: linear-gradient(160deg, var(--violet-900), var(--violet-600)); }
.login-box { background: #fff; border-radius: 16px; padding: 32px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.login-box h1 { font-size: 1.3rem; margin: 0; }

/* ---------- Área do cliente ---------- */
.client-head { background: #fff; border-bottom: 1px solid var(--border); }
.client-head .container { padding-bottom: 16px; padding-top: 16px; }
.client-id { display: flex; align-items: center; gap: 14px; }
.client-id h1 { margin: 0; font-size: 1.25rem; }
.client-id p { margin: 0; }
.intro p { margin: 0; }
.net-group { margin-bottom: 28px; }
.net-title { font-size: 1.25rem; border-bottom: 3px solid var(--magenta); display: inline-block; padding-bottom: 2px; margin-bottom: 14px; }
.piece { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.piece-open { border-top: 4px solid var(--cyan); }
.piece header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.piece-date { font-weight: 600; color: var(--violet-900); }
.piece-closed { padding: 0; }
.piece-closed > summary { padding: 14px 18px; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; list-style: none; }
.piece-closed > summary::-webkit-details-marker { display: none; }
.piece-closed > summary::after { content: "＋"; margin-left: auto; color: var(--violet-600); }
.piece-closed[open] > summary::after { content: "－"; }
.piece-closed[open] > summary { border-bottom: 1px solid var(--border); }
.piece-closed > :not(summary) { margin-left: 18px; margin-right: 18px; }
.piece-closed > :last-child { margin-bottom: 18px; }
.piece-closed > summary + * { margin-top: 14px; }

.text-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.col-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.copy { font-size: .95rem; word-break: break-word; }
.hashtag { color: var(--cyan); }
.slide-text { margin-bottom: 12px; }
.slide-label { display: block; font-weight: 700; font-size: .85rem; color: var(--violet-700); }
.meta-line { margin: 0 0 6px; font-size: .9rem; }
.piece-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.text-toggle { margin-top: 14px; }
.text-toggle summary { cursor: pointer; color: var(--violet-600); font-weight: 500; font-size: .9rem; }
.comment-box { margin-top: 14px; }
.client-foot { text-align: center; padding: 24px 0 90px; }

.finish-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: #fff; border-top: 3px solid var(--magenta); box-shadow: 0 -6px 20px rgba(0, 0, 0, .1); padding: 12px 20px; margin: 24px -16px 0; border-radius: 12px 12px 0 0; }
.finish-bar p { margin: 0; font-weight: 500; }

/* ---------- Mockups de produto final ---------- */
.mock { margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: 100%; }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mock-head strong { display: block; font-size: .9rem; line-height: 1.2; }
.mock-sub { display: block; font-size: .75rem; color: var(--muted); }
.mock-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper); }
.mock-avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--violet-600); color: #fff; font-weight: 700; }
.mock-img { display: block; width: 100%; object-fit: cover; background: var(--paper); }
.mock-img-ph { display: flex; align-items: center; justify-content: center; min-height: 140px; color: var(--muted); font-size: .85rem; border: 2px dashed var(--paper-2); }
.mock-actions { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 12px; margin: 0; font-size: .82rem; color: var(--muted); font-weight: 500; border-top: 1px solid var(--paper); }
.mock-caption { padding: 4px 12px 14px; font-size: .9rem; }
.mock-caption-top { padding-top: 0; }
.mock-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mock-slide { flex: 0 0 100%; scroll-snap-align: start; }
.mock-count { margin: 0; padding: 6px 12px; font-size: .78rem; color: var(--muted); text-align: center; }

.mock-social { max-width: 470px; }
.mock-instagram { max-width: 420px; }
.mock-instagram .mock-actions { border-top: 0; }
.mock-linkedin, .mock-facebook { max-width: 560px; }
.mock-story { max-width: 280px; background: #111; }
.mock-story .mock-head strong, .mock-story .mock-sub { color: #fff; }
.mock-story .mock-actions { display: none; }

.mock-email { max-width: 640px; }
.mock-email-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--paper-2); }
.mock-email-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9c9cf; }
.mock-email-meta { padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fafafa; }
.mock-email-meta p { margin: 2px 0; font-size: .85rem; }
.mock-preheader { color: var(--muted); }
.mock-email-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.mock-article { max-width: 640px; }
.mock-article-body { padding: 16px 20px 20px; }
.mock-article-body h3 { font-size: 1.3rem; }
.mock-byline { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.mock-generic { max-width: 560px; }

@media (max-width: 720px) {
    .topbar { padding: 10px 16px; }
    .grid-2, .text-card { grid-template-columns: 1fr; }
    .finish-bar { margin-left: -16px; margin-right: -16px; }
    .finish-bar .btn { width: 100%; }
    .piece { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
