/* Professional Certification — widgets compartilhados (card dashboard, banner curso, CTA quiz/cert) */

/* === Dashboard card === */
.pc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02)), var(--surface, #18181d);
  border: 1px solid rgba(212,175,55,0.20);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 14px auto 20px;
  max-width: 1280px;
  width: calc(100% - 32px);
  box-sizing: border-box;
}
.pc-icon { font-size: 36px; line-height: 1; }
.pc-body { min-width: 0; }
.pc-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  background: linear-gradient(135deg, #F5D67B, #D4AF37);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.pc-title { font-size: 16px; font-weight: 700; color: var(--text, #f5f5f7); line-height: 1.3; margin-bottom: 4px; }
.pc-desc { font-size: 13px; color: var(--text-2, #a8a8b3); line-height: 1.45; }

.pc-progress {
  margin-top: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.pc-progress-fill {
  background: linear-gradient(90deg, #D4AF37, #F5D67B);
  height: 100%;
  transition: width 0.4s;
}

.pc-cta {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  background: var(--surface-2, #22222a);
  color: var(--text, #f5f5f7);
  border: 1px solid rgba(255,255,255,0.15);
}
.pc-cta.pc-eligible,
.pc-cta.pc-approved {
  background: linear-gradient(135deg, #d4af37, #b9892f);
  color: #1a1a22;
  border-color: transparent;
}
.pc-cta.pc-certified {
  background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(212,175,55,0.08));
  color: #F5D67B;
  border-color: rgba(212,175,55,0.4);
}
.pc-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* Mobile — empilhar */
@media (max-width: 640px) {
  .pc-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 16px 18px;
  }
  .pc-icon { font-size: 28px; }
  .pc-cta { width: 100%; text-align: center; padding: 12px; }
}

/* === Banner contextual no curso === */
.pc-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px auto;
  max-width: 1280px;
  width: calc(100% - 32px);
  box-sizing: border-box;
}
.pcb-icon { font-size: 28px; line-height: 1; }
.pcb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcb-text strong { font-size: 14.5px; color: var(--text, #f5f5f7); font-weight: 700; }
.pcb-text span { font-size: 12.5px; color: var(--text-2, #a8a8b3); line-height: 1.4; }
.pcb-progress {
  margin-top: 6px; background: rgba(255,255,255,0.06);
  border-radius: 99px; height: 4px; overflow: hidden;
}
.pcb-progress-fill {
  background: linear-gradient(90deg, #D4AF37, #F5D67B);
  height: 100%; transition: width 0.4s;
}
.pcb-cta {
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 700;
  background: rgba(212,175,55,0.18);
  color: #F5D67B;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.pcb-cta:hover { background: rgba(212,175,55,0.30); }

@media (max-width: 640px) {
  .pc-banner { grid-template-columns: 1fr; text-align: left; }
  .pc-banner .pcb-cta { width: 100%; text-align: center; }
}

/* === Quick CTA (quiz aprovado, certificado emitido) === */
.pc-quick-cta {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px auto;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.pc-quick-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.pc-quick-body { flex: 1; min-width: 220px; }
.pc-quick-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  color: #F5D67B; margin-bottom: 5px;
}
.pc-quick-title { font-size: 15px; font-weight: 700; color: var(--text, #f5f5f7); margin-bottom: 4px; }
.pc-quick-desc { font-size: 13px; color: var(--text-2, #a8a8b3); line-height: 1.45; }
.pc-quick-btn {
  padding: 11px 18px; font-size: 13.5px; font-weight: 700;
  background: linear-gradient(135deg, #d4af37, #b9892f);
  color: #1a1a22; border-radius: 10px; white-space: nowrap;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.pc-quick-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212,175,55,0.3); }

@media (max-width: 560px) {
  .pc-quick-cta { flex-direction: column; align-items: flex-start; }
  .pc-quick-btn { width: 100%; text-align: center; }
}
