/* ================================================================
   Gerador de Currículo (form, preview, chat IA e landing).
   Extraído do app.css para carregar só nas páginas resume/*.
   Observação: .resume-cta e .btn-lg permanecem no app.css (core),
   pois são usados fora do currículo (vaga e utilitário global).
   ================================================================ */

/* ===== Gerador de Currículo ===== */
.resume-ai{border:1px solid #d6e4ff;background:linear-gradient(180deg,#f5f9ff,#fff)}
.resume-photo-row{display:flex;gap:16px;align-items:flex-start;margin-bottom:12px}
.resume-photo-preview{width:96px;height:96px;border-radius:50%;border:2px dashed var(--border-2);
  display:flex;align-items:center;justify-content:center;color:var(--text-3);font-size:.8rem;flex:none;overflow:hidden;background:var(--hover)}
.resume-photo-preview img{width:100%;height:100%;object-fit:cover}
.resume-sec-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:10px}
.resume-rows{display:flex;flex-direction:column;gap:12px}
.resume-row{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;position:relative;background:#fafbfc}
.resume-row-del{margin-top:6px;background:none;border:none;color:#d9534f;cursor:pointer;font-size:.85rem;padding:0}
.resume-templates{display:flex;gap:10px;flex-wrap:wrap}
.resume-tpl{border:2px solid var(--border);border-radius:var(--radius-sm);padding:8px 16px;cursor:pointer;font-size:.9rem}
.resume-tpl.active{border-color:var(--fb-blue);background:#eef4ff;color:var(--fb-blue);font-weight:600}
.resume-tpl input{display:none}
.resume-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.resume-actions-btns{display:flex;gap:8px;flex-wrap:wrap}
.resume-preview-wrap{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:36px;margin-bottom:30px}

/* Currículo (preview e base compartilhada) */
.cv{--accent:#1877F2;color:#222;font-size:14px;line-height:1.55}
.cv-header{border-bottom:3px solid var(--accent);padding-bottom:14px;margin-bottom:18px;overflow:hidden}
.cv-photo{width:96px;height:96px;float:left;margin-right:18px}
.cv-photo img{width:96px;height:96px;object-fit:cover;border-radius:50%;border:2px solid var(--accent)}
.cv-name{font-size:26px;color:var(--accent);font-weight:800}
.cv-headline{font-size:15px;color:#555;margin-top:2px;font-weight:600}
.cv-contact{margin-top:8px;font-size:12px;color:#444}
.cv-contact span{margin-right:14px}
.cv-section{margin-bottom:16px}
.cv-sec-title{font-size:13px;color:var(--accent);text-transform:uppercase;letter-spacing:.5px;
  border-bottom:1px solid #ddd;padding-bottom:4px;margin-bottom:9px}
.cv-summary{text-align:justify}
.cv-item{margin-bottom:10px}
.cv-item-top b{font-size:13.5px}
.cv-period{float:right;color:#777;font-size:12px}
.cv-item-sub{color:#555;font-style:italic;font-size:12.5px}
.cv-item-desc{margin-top:2px;text-align:justify}
.cv-tag{display:inline-block;background:#eef4ff;color:var(--accent);border:1px solid #d6e4ff;
  border-radius:12px;padding:3px 10px;margin:0 5px 5px 0;font-size:12px}
.cv-list{margin-left:18px}

@media(max-width:600px){
  .resume-preview-wrap{padding:18px}
  .cv-photo,.cv-photo img{width:76px;height:76px}
  .cv-name{font-size:21px}
}

/* Aviso salvar currículo na conta */
.resume-save-cta{display:flex;gap:14px;align-items:flex-start;border:1px solid #d6e4ff;background:linear-gradient(180deg,#f5f9ff,#fff)}
.resume-save-ico{font-size:1.8rem;line-height:1;flex:none}
.resume-save-btns{display:flex;gap:8px;flex-wrap:wrap}

/* ===== Chat IA do currículo (estilo app) ===== */
body.cvchat-lock{overflow:hidden}
.cvchat{position:fixed;inset:0;z-index:2000;background:var(--bg);
  display:flex;flex-direction:column;
  transform:translateY(100%);opacity:0;pointer-events:none;
  transition:transform .28s ease,opacity .28s ease}
.cvchat.open{transform:translateY(0);opacity:1;pointer-events:auto}

.cvchat-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--fb-blue);color:#fff;padding:12px 14px;
  padding-top:calc(12px + env(safe-area-inset-top));
  box-shadow:0 2px 8px rgba(0,0,0,.15)}
.cvchat-title{display:flex;align-items:center;gap:10px;min-width:0}
.cvchat-title b{font-size:.98rem;display:block;line-height:1.2}
.cvchat-title small{font-size:.76rem;opacity:.85}
.cvchat-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;flex:none}
.cvchat-close{background:rgba(255,255,255,.15);border:none;color:#fff;width:38px;height:38px;
  border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.cvchat-close:hover{background:rgba(255,255,255,.28)}

.cvchat-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:16px 12px;display:flex;flex-direction:column;gap:10px;background:#e9ebee}
.cvchat-msg{display:flex;max-width:85%}
.cvchat-msg.ai{align-self:flex-start}
.cvchat-msg.me{align-self:flex-end;justify-content:flex-end}
.cvchat-bubble{padding:10px 14px;border-radius:18px;font-size:.95rem;line-height:1.45;
  white-space:pre-wrap;word-wrap:break-word;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.cvchat-msg.ai .cvchat-bubble{background:#fff;color:var(--text);border-bottom-left-radius:5px}
.cvchat-msg.me .cvchat-bubble{background:var(--fb-blue);color:#fff;border-bottom-right-radius:5px}

/* Indicador de digitando */
.cvchat-dots{display:flex;gap:4px;align-items:center}
.cvchat-dots span{width:7px;height:7px;border-radius:50%;background:#9aa0a6;display:inline-block;
  animation:cvblink 1.2s infinite ease-in-out}
.cvchat-dots span:nth-child(2){animation-delay:.2s}
.cvchat-dots span:nth-child(3){animation-delay:.4s}
@keyframes cvblink{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.cvchat-footer{flex:none;display:flex;gap:8px;align-items:flex-end;padding:10px 12px;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
  background:var(--card);border-top:1px solid var(--border)}
.cvchat-footer textarea{flex:1;border:1px solid var(--border-2);border-radius:22px;
  padding:10px 16px;font-size:1rem;resize:none;max-height:120px;font-family:inherit;line-height:1.4;
  outline:none}
.cvchat-footer textarea:focus{border-color:var(--fb-blue)}
.cvchat-send{flex:none;width:46px;height:46px;border-radius:50%;border:none;background:var(--fb-blue);
  color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cvchat-send:disabled{opacity:.5}

.cvchat-done{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;padding-bottom:calc(12px + env(safe-area-inset-bottom));
  background:var(--card);border-top:1px solid var(--border);font-weight:700}

/* Desktop: chat centralizado como janela, não tela cheia */
@media(min-width:720px){
  .cvchat{inset:auto;top:50%;left:50%;transform:translate(-50%,-50%) scale(.96);
    width:440px;height:80vh;max-height:680px;border-radius:16px;overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.3)}
  .cvchat.open{transform:translate(-50%,-50%) scale(1)}
  .cvchat::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:-1}
  .cvchat-header{border-radius:16px 16px 0 0;padding-top:14px}
}

/* Cabeçalho de item do currículo (tabela cargo/período) no preview */
.cv-wrap{width:100%}
table.cv-item-top{width:100%;border-collapse:collapse}
table.cv-item-top td{vertical-align:top;padding:0}
table.cv-item-top .cv-role{font-size:13.5px;font-weight:700}
table.cv-item-top .cv-period{text-align:right;color:#777;font-size:12px;white-space:nowrap;width:90px}

/* ===== Landing page do gerador de currículo ===== */
.lp-hero{text-align:center;padding:40px 16px 30px}
.lp-hero h1{font-size:2rem;line-height:1.15;margin-bottom:14px;color:var(--text)}
.lp-sub{font-size:1.05rem;color:var(--text-2);max-width:620px;margin:0 auto 20px}
.lp-cta-row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.lp-trust{margin-top:14px;color:var(--text-3);font-size:.88rem}
.lp-section{padding:28px 0;max-width:900px;margin:0 auto}
.lp-section > h2{font-size:1.5rem;text-align:center;margin-bottom:22px}
.lp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.lp-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-align:center}
.lp-ico{font-size:2rem;margin-bottom:8px}
.lp-card h3{font-size:1.05rem;margin-bottom:6px}
.lp-card p{color:var(--text-2);font-size:.9rem}
.lp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.lp-step{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:22px 18px;text-align:center;position:relative}
.lp-step-n{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--fb-blue);color:#fff;font-weight:800;font-size:1.1rem;margin-bottom:10px}
.lp-step h3{font-size:1.05rem;margin-bottom:6px}
.lp-step p{color:var(--text-2);font-size:.9rem}
.lp-text{max-width:760px}
.lp-text h2{text-align:left;font-size:1.4rem;margin-bottom:12px}
.lp-text h3{font-size:1.15rem;margin:18px 0 8px}
.lp-text p{color:var(--text-2);margin-bottom:12px;line-height:1.6}
.lp-faq{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.lp-faq-item{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px 16px}
.lp-faq-item summary{font-weight:700;cursor:pointer;list-style:none}
.lp-faq-item summary::-webkit-details-marker{display:none}
.lp-faq-item summary::before{content:"+ ";color:var(--fb-blue);font-weight:800}
.lp-faq-item[open] summary::before{content:"− "}
.lp-faq-item p{margin-top:10px;color:var(--text-2)}
.lp-final{text-align:center;background:linear-gradient(180deg,#eef4ff,#fff);border:1px solid #d6e4ff;border-radius:var(--radius);padding:34px 20px;margin:20px 0 40px}
.lp-final h2{font-size:1.5rem;margin-bottom:8px}
.lp-final > p{color:var(--text-2);margin-bottom:18px}
@media(max-width:720px){
  .lp-hero h1{font-size:1.6rem}
  .lp-grid,.lp-steps{grid-template-columns:1fr}
  .lp-section > h2{font-size:1.3rem}
}
