/* ============================================
   CurriculumAI – Page-specific Styles
   ============================================ */

/* ── Login page ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Wizard ── */
.wizard-step { animation: fadeUp .35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Processing step highlight ── */
.processing-step > div {
  transition: all .3s ease;
}

/* ── Result page gauge animation ── */
@keyframes gaugeIn {
  from { stroke-dashoffset: 427; }
}

/* ── Score mini circles ── */
.mini-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mini-score-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.mini-score-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  color: var(--text-muted);
}

/* ── Suggestion priority badges ── */
.sug-badge-alta   { background: var(--red-50);    color: var(--red-500);    border: 1px solid var(--red-200); }
.sug-badge-media  { background: var(--orange-50); color: var(--orange-500); border: 1px solid var(--orange-100); }
.sug-badge-baixa  { background: var(--blue-50);   color: var(--blue-600);   border: 1px solid var(--blue-200); }

/* ── History card hover ── */
.history-card { cursor: pointer; }
.history-card:hover { box-shadow: var(--shadow-md) !important; }

/* ── Template selection ── */
.template-opt { transition: all .2s ease; }
.template-opt.active-tpl {
  border-color: var(--blue-400) !important;
  background: var(--blue-50) !important;
}

/* ── Profile completeness ring ── */
.profile-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-ring-value {
  position: absolute;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-600);
}

/* ── Chip remove hover ── */
.chip:hover { border-color: var(--red-300); }
.chip .chip-remove { color: var(--text-muted); }
.chip:hover .chip-remove { color: var(--red-500); }

/* ── Editor sticky CTA ── */
.editor-cta {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  z-index: 10;
  margin: 0 -32px;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 52px; margin-bottom: 16px; opacity: .5; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--slate-700); margin-bottom: 8px; }
.empty-state-sub { font-size: 14px; margin-bottom: 20px; }

/* ── Topbar gradient line ── */
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400), transparent);
  opacity: .3;
}
.topbar { position: relative; }

/* ── Nav active indicator ── */
.nav-item.active {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* ── Responsive fixes ── */
@media (max-width: 900px) {
  #page-resultado [style*="grid-template-columns:280px"] {
    display: flex !important;
    flex-direction: column !important;
  }
  #page-ats [style*="grid-template-columns:300px"] {
    display: flex !important;
    flex-direction: column !important;
  }
  #page-editor [style*="grid-template-columns:1fr 340px"] {
    display: flex !important;
    flex-direction: column !important;
  }
  #page-analisar [style*="grid-template-columns:1fr 300px"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr !important; }
  .wizard-progress { padding: 12px 16px; }
  .card-lg { padding: 20px; }
}
