/**
 * Sistema de aprovação · Etapa 2
 * - PostApproval: barra fixa no canto inferior esquerdo de cada slide de post
 * - MonthApproval: painel central no slide Obrigado
 */

/* =========================================================
   POST APPROVAL · barra inline
   ========================================================= */
.post-approval{
  position: absolute;
  right: 80px;
  bottom: 110px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #111;
  padding: 16px 20px;
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 13px;
  min-width: 460px;
  max-width: 640px;
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
}
/* Quando aprovado, faixa lateral verde */
.post-approval.is-approved{
  border-left: 4px solid #00b34a;
  padding-left: 13px;
}
.post-approval.is-changes-requested{
  border-left: 4px solid #E8443B;
  padding-left: 13px;
}

.pa-status{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .02em;
  flex-wrap: wrap;
}
.pa-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}
.post-approval.is-pending .pa-dot{ background: #ddd; }
.post-approval.is-approved .pa-dot{ background: #00b34a; box-shadow: 0 0 0 3px rgba(0,179,74,.15); }
.post-approval.is-changes-requested .pa-dot{ background: #E8443B; box-shadow: 0 0 0 3px rgba(232,68,59,.15); }

.pa-label{ color: #444; }
.pa-label strong{ color: #111; font-weight: 600; }
.pa-note{
  color: #666; font-style: italic;
  padding-left: 8px;
  border-left: 2px solid #eee;
  font-size: 11px;
}

.pa-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pa-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #111;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.pa-btn:hover{ background: #111; color: #fff; }
.pa-btn:hover svg{ stroke: #fff; }

.pa-approve{
  background: #00b34a; color: #fff; border-color: #00b34a;
}
.pa-approve:hover{ background: #008f3a; border-color: #008f3a; color: #fff; }
.pa-approve svg{ stroke: #fff; }

.pa-changes:hover{ background: #E8443B; border-color: #E8443B; color: #fff; }
.pa-reset{ color: #888; border-color: #ccc; }
.pa-reset:hover{ background: #f5f5f5; color: #111; border-color: #111; }
.pa-cancel{ color: #888; border-color: #ccc; }
.pa-confirm{ background: #E8443B; color: #fff; border-color: #E8443B; }
.pa-confirm:hover{ background: #c4372f; border-color: #c4372f; color: #fff; }

.pa-note-form{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}
.pa-note-form textarea{
  width: 100%;
  border: 1px solid #ccc;
  font-family: var(--sans);
  font-size: 12px;
  padding: 8px 10px;
  resize: none;
  outline: none;
}
.pa-note-form textarea:focus{ border-color: #111; }
.pa-note-actions{ display: flex; gap: 8px; justify-content: flex-end; }

/* =========================================================
   MONTH APPROVAL · painel grande no slide Obrigado
   ========================================================= */
.month-approval{
  position: absolute;
  right: 80px;
  top: 80px;
  z-index: 50;
  width: 480px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border: 1px solid #111;
  padding: 24px 28px;
  font-family: var(--sans, "Inter", sans-serif);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.month-approval.is-approved{
  background: #f5fff8;
  border-color: #00b34a;
  border-width: 2px;
}

.ma-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #111;
  padding-bottom: 12px;
}
.ma-eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #666;
}
.ma-counter{
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ma-num{
  font-family: var(--sans);
  font-weight: 200;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #111;
}
.ma-of{
  font-family: var(--sans);
  font-weight: 200;
  font-size: 32px;
  color: #999;
  letter-spacing: -.02em;
}
.ma-num-label{
  margin-left: 8px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #666;
  align-self: center;
}

.ma-bar{
  display: grid;
  grid-template-columns: repeat(var(--cells, 4), 1fr);
  gap: 4px;
  height: 8px;
}
.ma-cell{
  background: #eee;
  height: 100%;
}
.ma-cell.is-approved{ background: #00b34a; }
.ma-cell.is-changes-requested{ background: #E8443B; }
.ma-cell.is-pending{ background: #ddd; }

.ma-meta{
  display: flex;
  gap: 18px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .08em;
  color: #666;
}
.ma-meta b{ color: #111; font-weight: 500; }

.ma-cta{
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.ma-cta:not(:disabled):hover{ background: #00b34a; border-color: #00b34a; }
.ma-cta:disabled{
  background: #fafafa;
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
}

/* Estado aprovado: card final */
.ma-approved{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #00b34a;
}
.ma-approved-mark{
  width: 44px; height: 44px;
  background: #00b34a;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.ma-approved-body{ flex: 1; }
.ma-approved-title{
  font-size: 14px;
  font-weight: 600;
  color: #111;
  letter-spacing: -.01em;
}
.ma-approved-meta{
  font-size: 11px;
  color: #666;
  font-family: var(--mono);
  letter-spacing: .04em;
  margin-top: 2px;
}
.ma-approved-meta b{ color: #111; font-weight: 500; }
.ma-reopen{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
  background: transparent;
  border: 1px solid #ddd;
  padding: 6px 12px;
  cursor: pointer;
}
.ma-reopen:hover{ color: #111; border-color: #111; }

/* ===== Floating Submit (rodapé sticky) ===== */
.fs-root{
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  pointer-events: none;
}
.fs-bar{
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-family: var(--sans);
  font-size: 13px;
}
.fs-meta{
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.fs-count b{ font-size: 16px; font-weight: 700; }
.fs-label{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aaa;
}
.fs-demo{
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffaa00;
  border: 1px solid #ffaa00;
  padding: 2px 6px;
  border-radius: 4px;
}
.fs-pending{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: #ffd24a;
}
.fs-actions{ display: flex; gap: 8px; }
.fs-btn{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.fs-btn:disabled{ opacity: .4; cursor: not-allowed; }
.fs-sync{
  background: #2a2a2a;
  color: #fff;
  border-color: #444;
}
.fs-sync:not(:disabled):hover{ background: #444; }
.fs-submit{
  background: #00b34a;
  color: #fff;
}
.fs-submit:not(:disabled):hover{ background: #00d958; }
.fs-toast{
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
  animation: fs-toast-in .25s ease;
}
.fs-toast.is-warn{ background: #c4860a; }
@keyframes fs-toast-in{
  from{ opacity: 0; transform: translateX(-50%) translateY(8px); }
  to  { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Caption text selection tooltip (UX2) + font controls (a11y) ===== */
.caption-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.caption-font-controls{
  display: flex;
  gap: 4px;
  align-items: center;
}
.cfc-btn{
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  cursor: pointer;
  line-height: 1;
  letter-spacing: .04em;
  transition: all .12s;
  user-select: none;
}
.cfc-btn:hover:not(:disabled){ background: #111; color: #fff; border-color: #111; }
.cfc-btn:disabled{ opacity: .35; cursor: not-allowed; }
.cfc-btn.cfc-reset{ font-size: 12px; padding: 4px 10px; }
.caption .caption-text{
  font-size: calc(16px * var(--caption-scale, 1));
  line-height: 1.55;
  transition: font-size .15s ease;
}
.caption .hashtags{
  font-size: calc(15px * var(--caption-scale, 1));
  transition: font-size .15s ease;
}
.caption-quote-tip{
  position: absolute;
  z-index: 80;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  user-select: none;
  animation: cqt-in .15s ease-out;
}
.caption-quote-tip:hover{ background: #E8443B; }
@keyframes cqt-in{
  from{ opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to{ opacity: 1; transform: translateX(-50%) translateY(0); }
}
.caption-text{ user-select: text; cursor: text; }
.caption-text p{ user-select: text; }
