/* Painel do blog: mesmas cores e fontes do site (src/static/assets/css/site.css) */
:root {
  --bg: #F4F2EF;
  --band: #E7E1DA;
  --card: #FFFFFF;
  --text: #333333;
  --text-2: #4C494C;
  --muted: #7A7570;
  --brown: #866D4B;
  --blue: #397499;
  --blue-dark: #2c5d7c;
  --green: #2F4B3D;
  --red: #A3402F;
  --line: #DDD6CE;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius); background: none; font: 500 13px/1 var(--sans); letter-spacing: .3px; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primario { background: var(--blue); color: #fff; }
.btn--primario:hover:not(:disabled) { background: var(--blue-dark); }
.btn--contorno { border-color: var(--line); background: var(--card); color: var(--text-2); }
.btn--contorno:hover:not(:disabled) { border-color: var(--brown); color: var(--brown); }
.btn--perigo { color: var(--red); }
.btn--perigo:hover:not(:disabled) { background: #f6e9e6; }
.btn--bloco { width: 100%; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.campo > span, .rotulo { font: 600 11px/1.2 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.campo input, .campo select, .campo textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .titulo-post:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.dica { font-size: 12px; color: var(--muted); }
.contador { align-self: flex-end; font-size: 11px; color: var(--muted); }
.contador--alto { color: var(--red); }
.erro { padding: 10px 12px; border-radius: var(--radius); background: #f6e9e6; color: var(--red); font-size: 14px; }
.ok { padding: 10px 12px; border-radius: var(--radius); background: #e6efe9; color: var(--green); font-size: 14px; }

/* telas de entrar e senha */
.conta { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.conta__caixa { width: 100%; max-width: 380px; padding: 36px 32px; background: var(--card); border-radius: 10px; box-shadow: 0 10px 40px rgba(76, 73, 76, .08); }
.conta__marca { margin-bottom: 26px; text-align: center; }
.conta__marca strong { display: block; font: 400 32px/1 var(--serif); color: var(--text-2); }
.conta__marca span { font: 500 11px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--brown); }
.conta__caixa h1 { margin-bottom: 18px; font: 500 16px/1.3 var(--sans); color: var(--text-2); }
.conta__caixa .erro, .conta__caixa .ok { margin-bottom: 16px; }
.conta__link { display: block; margin-top: 16px; text-align: center; font-size: 13px; }

/* topo */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 60px; background: var(--card); border-bottom: 1px solid var(--line); }
.topo__marca { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.topo__marca strong { font: 400 24px/1 var(--serif); color: var(--text-2); }
.topo__marca span { font: 600 10px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown); }
.topo__nav { display: flex; gap: 4px; flex: 1; }
.topo__nav a { padding: 8px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.topo__nav a:hover { background: var(--bg); }
.topo__nav a[aria-current] { background: var(--band); color: var(--text); }
.topo__eu { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.modo-local { padding: 4px 8px; border-radius: 4px; background: #fff3d6; color: #7a5a00; font-size: 11px; font-weight: 600; }

.pagina { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.pagina__cabeca { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pagina__cabeca h1 { font: 400 36px/1.1 var(--serif); color: var(--text-2); }

/* lista de posts */
.tabela { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.tabela th { padding: 12px 16px; text-align: left; font: 600 11px/1 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.tabela td { padding: 14px 16px; border-bottom: 1px solid var(--bg); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover { background: #faf9f7; }
.tabela__titulo a { font-weight: 500; color: var(--text); text-decoration: none; }
.tabela__titulo a:hover { color: var(--blue); }
.tabela__sub { display: block; font-size: 12px; color: var(--muted); }
.selo { display: inline-block; padding: 4px 9px; border-radius: 20px; font: 600 11px/1 var(--sans); white-space: nowrap; }
.selo--publicado { background: #e6efe9; color: var(--green); }
.selo--rascunho { background: var(--band); color: var(--text-2); }
.selo--alterado { background: #fff3d6; color: #7a5a00; }
.vazio { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--card); border-radius: 10px; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.editor__principal { min-width: 0; }
.titulo-post { width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: 400 40px/1.15 var(--serif); color: var(--text-2); }
.titulo-post::placeholder { color: #b9b2aa; }
.endereco { margin: 10px 0 20px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.endereco input { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; min-width: 220px; }
.texto-post { background: var(--card); border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.texto-post .ql-toolbar.ql-snow { position: sticky; top: 60px; z-index: 5; border: 0; border-bottom: 1px solid var(--line); background: var(--card); border-radius: 10px 10px 0 0; padding: 10px 12px; }
.texto-post .ql-container.ql-snow { border: 0; font: 400 17px/1.75 var(--sans); }
.texto-post .ql-editor { min-height: 460px; padding: 28px 36px 60px; }
.texto-post .ql-editor h2 { font: 400 30px/1.2 var(--serif); color: var(--text-2); margin: 1.2em 0 .4em; }
.texto-post .ql-editor h3 { font: 500 23px/1.25 var(--serif); color: var(--text-2); margin: 1.1em 0 .4em; }
.texto-post .ql-editor p { margin-bottom: .9em; }
.texto-post .ql-editor blockquote { border-left: 2px solid var(--brown); padding-left: 18px; font: italic 400 22px/1.4 var(--serif); color: var(--text-2); }
.texto-post .ql-editor img { display: block; max-width: 100%; margin: 12px 0; border-radius: 4px; }
.texto-post .ql-editor.ql-blank::before { left: 36px; font-style: normal; color: #b9b2aa; }

.lateral { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.cartao { padding: 18px; background: var(--card); border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.cartao > h2 { margin-bottom: 14px; font: 600 11px/1 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.cartao .campo:last-child { margin-bottom: 0; }
.acoes { display: flex; flex-direction: column; gap: 8px; }
.acoes__linha { display: flex; flex-wrap: wrap; gap: 8px; }
.acoes__linha .btn { flex: 1 1 auto; }
.salvo { min-height: 18px; font-size: 12px; color: var(--muted); }
.capa { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg) center / cover no-repeat; color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; overflow: hidden; }
.capa:hover { border-color: var(--brown); }
.capa--com-foto { border-style: solid; }
.capa--com-foto span { position: absolute; bottom: 8px; right: 8px; padding: 4px 8px; border-radius: 4px; background: rgba(255, 255, 255, .9); font-size: 12px; }
.google { padding: 12px; border-radius: var(--radius); background: var(--bg); font-family: Arial, sans-serif; }
.google__url { font-size: 12px; color: #4d5156; overflow-wrap: anywhere; }
.google__titulo { margin: 2px 0; font-size: 17px; line-height: 1.3; color: #1a0dab; }
.google__desc { font-size: 13px; line-height: 1.45; color: #4d5156; }

/* publicação */
.status-pub { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); font-size: 13px; }
.status-pub--publicando { background: #e8f0f5; color: var(--blue-dark); }
.status-pub--no-ar { background: #e6efe9; color: var(--green); }
.status-pub--falhou { background: #f6e9e6; color: var(--red); }
.girando { width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* janela de confirmação */
.janela { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(51, 51, 51, .45); }
.janela__caixa { width: 100%; max-width: 440px; padding: 26px; background: var(--card); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.janela__caixa h2 { margin-bottom: 10px; font: 400 26px/1.2 var(--serif); color: var(--text-2); }
.janela__caixa p { margin: 0 0 20px; color: var(--text-2); }
.janela__caixa .campo { margin-bottom: 20px; }
.janela__botoes { display: flex; justify-content: flex-end; gap: 8px; }

.aviso-flutuante { position: fixed; bottom: 20px; left: 50%; z-index: 60; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--radius); background: var(--text); color: #fff; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }

/* usuários e categorias */
.grade-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

@media (max-width: 900px) {
  .editor, .grade-2 { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .topo { gap: 12px; padding: 0 14px; overflow-x: auto; }
  .topo__marca span, .topo__eu > span { display: none; }
  .pagina { padding: 20px 14px 60px; }
  .titulo-post { font-size: 30px; }
  .texto-post .ql-editor { padding: 20px 16px 40px; }
  .tabela__cat, .tabela th:nth-child(2) { display: none; }
}

/* Tags já usadas (editor) */
.tags-usadas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.tags-usadas small { color: #8a827a; }
.tag-sugerida { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-size: 12px; cursor: pointer; }
.tag-sugerida:hover { border-color: var(--brown); color: var(--brown); }

/* Editor completo: cores, legenda, separador, botão e vídeo como no site */
.texto-post .ql-editor h4 { font: 600 15px/1.4 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); margin: 1em 0 .4em; }
.texto-post .ql-editor .ql-color-marrom { color: #866D4B; }
.texto-post .ql-editor .ql-color-azul { color: #397499; }
.texto-post .ql-editor .ql-color-verde { color: #2F4B3D; }
.texto-post .ql-editor .ql-bg-bege { background: #E7E1DA; }
.ql-snow .ql-picker.ql-color .ql-picker-item[data-value="marrom"] { background-color: #866D4B !important; }
.ql-snow .ql-picker.ql-color .ql-picker-item[data-value="azul"] { background-color: #397499 !important; }
.ql-snow .ql-picker.ql-color .ql-picker-item[data-value="verde"] { background-color: #2F4B3D !important; }
.ql-snow .ql-picker.ql-background .ql-picker-item[data-value="bege"] { background-color: #E7E1DA !important; }
.texto-post .ql-editor .ql-legenda-sim { margin-top: -.4em; font-size: 13px; color: #8a827a; text-align: center; }
.texto-post .ql-editor hr { border: 0; border-top: 1px solid var(--line); width: 40%; margin: 1.6em auto; }
.texto-post .ql-editor .ql-botao { margin: 1.2em 0; text-align: center; }
.texto-post .ql-editor .ql-botao .btn { pointer-events: none; }
.texto-post .ql-editor .ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 12px 0; }
.atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.texto-post .ql-editor .ql-botao .btn--solid { background: #397499; color: #fff; } .texto-post .ql-editor .ql-botao .btn--outline { border: 1px solid #866D4B; color: #755E3D; }

/* Revisão ortográfica */
.janela__caixa--larga { max-width: 640px; max-height: 86vh; overflow: auto; }
.revisao { margin: 6px 0 20px; padding: 0; list-style: none; }
.revisao__item { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.revisao__campo { font-size: 12px; color: #8a827a; text-transform: uppercase; }
.revisao__txt del { color: #b3261e; }
.revisao__txt ins { color: #2f6b3d; text-decoration: none; font-weight: 600; }
.revisao__txt small { display: block; margin-top: 2px; color: #8a827a; }
@media (max-width: 600px) { .revisao__item { grid-template-columns: 1fr; } }

/* SEO: nota e lista do que falta */
.seo-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.seo-nota { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 600 16px/1 var(--sans); color: #fff; background: #b3261e; }
.seo-nota--media { background: #b7791f; }
.seo-nota--boa { background: #2f6b3d; }
.seo-itens { margin: 12px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.seo-itens li { padding: 3px 0 3px 20px; position: relative; color: #6a6563; }
.seo-itens li::before { position: absolute; left: 0; }
.seo-itens li.ok::before { content: "✓"; color: #2f6b3d; }
.seo-itens li.falta::before { content: "•"; color: #b3261e; }

/* ---------- newsletter ---------- */
.nl-materia { margin: -8px 0 12px; color: var(--muted); }
.nl-ja { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #fff3d6; color: #7a5a00; }
.nl { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 24px; align-items: start; }
.nl__form { display: flex; flex-direction: column; gap: 14px; background: var(--card); padding: 20px; border-radius: 10px; }
.nl__form .campo small { font-weight: 400; color: var(--muted); }
.nl__grupo { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.nl__grupo legend { padding: 0 6px; font: 600 11px/1 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.nl__listas-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nl__lista { display: flex; align-items: center; gap: 8px; }
.nl__lista small { margin-left: auto; color: var(--muted); }
.nl__botoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.nl__previa { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nl__tamanhos { display: flex; gap: 8px; }
.nl__tamanhos [aria-pressed="true"] { background: var(--band); }
#nl-frame { width: 600px; max-width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #f4efe8; }
.recusa { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: #fde8e6; color: #8a1f12; }
.recusa small { color: #8a1f12; opacity: .8; }
.nl-totais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.nl-totais div { background: var(--card); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.nl-totais strong { font: 500 26px/1 var(--serif, serif); }
.nl-totais span { font-size: 12px; color: var(--muted); }
.nl-recusada td { background: #fdf1f0; }
.nl-motivo { color: #8a1f12; }
.selo--nl-criando, .selo--nl-enviando { background: #e6eef5; color: #2c5a78; }
.selo--nl-agendada { background: #fff3d6; color: #7a5a00; }
.selo--nl-enviada { background: #e6efe9; color: var(--green); }
.selo--nl-cancelada { background: var(--band); color: var(--text-2); }
.selo--nl-recusada { background: #fde8e6; color: #8a1f12; }
@media (max-width: 900px) {
  .nl { grid-template-columns: 1fr; }
  .nl__previa { position: static; }
  .nl-totais { grid-template-columns: repeat(2, 1fr); }
}
.selo--nl-incerta { background: #fff3d6; color: #7a5a00; }
