/* assets/css/profilo.css - Pagina profilo (vista + modifica) */
.ec-profilo { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.ec-prof-loading { text-align: center; color: #6b6b6b; padding: 40px 0; }

.ec-prof-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ec-prof-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px;
    background: #1f5fbf; color: #fff; font-size: 1.6rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.ec-prof-headmain { flex: 1; }
.ec-prof-nome { margin: 0 0 4px; font-size: 1.6rem; }
.ec-prof-meta { color: #6b6b6b; font-size: .92rem; }
.ec-prof-badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ec-badge { font-size: .78rem; padding: 3px 8px; border-radius: 999px; }
.ec-badge-ok { background: #eef7ee; color: #276b2b; }
.ec-badge-premium { background: #fff4e0; color: #9a6b1a; }

.ec-prof-bio { margin: 8px 0 20px; line-height: 1.5; white-space: pre-wrap; }

.ec-prof-block { margin-bottom: 20px; }
.ec-prof-block h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-chip {
    background: #f0ede7; border: 1px solid #e0dcd3; border-radius: 999px;
    padding: 5px 12px; font-size: .88rem;
}
.ec-chip.is-primary { background: #eef4ff; border-color: #cfe0ff; color: #1f5fbf; font-weight: 600; }

.ec-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.ec-field label { font-size: .9rem; margin-bottom: 5px; color: #333; }
.ec-field input, .ec-field textarea, .ec-field select {
    padding: 10px 12px; border: 1px solid #d8d4cc; border-radius: 8px;
    font-size: 1rem; background: #fdfdfc; font-family: inherit;
}
.ec-field input:focus, .ec-field textarea:focus, .ec-field select:focus {
    outline: none; border-color: #1f5fbf; box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
.ec-hint { color: #8a8a8a; font-size: .8rem; margin-top: 4px; }
.ec-row { display: flex; gap: 12px; }
.ec-row .ec-field { flex: 1; }

.ec-checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.ec-check { display: flex; align-items: center; gap: 6px; font-size: .92rem; padding: 4px 0; }

.ec-btn { padding: 11px 18px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.ec-btn-primary { background: #1f5fbf; color: #fff; font-weight: 600; }
.ec-btn-primary:hover { background: #1a52a5; }
.ec-btn-outline { background: #fff; border: 1px solid #d8d4cc; color: #333; }
.ec-btn-outline:hover { background: #f5f3ee; }
.ec-btn:disabled { opacity: .6; cursor: default; }

.ec-auth-msg { margin: 4px 0 12px; font-size: .9rem; border-radius: 8px; padding: 8px 10px; }
.ec-auth-msg.is-error { background: #fdecec; color: #b3261e; }
.ec-auth-msg.is-ok    { background: #eef7ee; color: #276b2b; }

@media (max-width: 520px) {
    .ec-row { flex-direction: column; gap: 0; }
    .ec-checkgrid { grid-template-columns: 1fr; }
}