/* Meu Progresso — dashboard */

.cert-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.cert-filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #cdd3de;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cert-filter-btn:hover { border-color: #2dd4bf; }
.cert-filter-btn.active { background: rgba(45,212,191,0.15); border-color: #2dd4bf; color: #2dd4bf; font-weight: 700; }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}
/* Escopo .stat-cards em tudo: components.css tem um .stat-card flex
   horizontal (outras paginas) que vencia e desalinhava estes cards. */
.stat-cards .stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.1rem 0.75rem;
    text-align: center;
    min-width: 0;
}
.stat-cards .stat-card:hover { transform: none; background: rgba(255,255,255,0.05); }
.stat-cards .stat-card.good { border-color: rgba(45,212,191,0.35); background: rgba(45,212,191,0.06); }
.stat-cards .stat-card.weak { border-color: rgba(255,107,107,0.3); background: rgba(255,107,107,0.05); }
.stat-cards .stat-icon { font-size: 1.5rem; margin-bottom: 0.1rem; }
.stat-cards .stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-cards .stat-label { font-size: 0.78rem; opacity: 0.7; margin-top: 0.1rem; }

.progress-hint { font-size: 0.85rem; opacity: 0.72; margin: 0.3rem 0 0.9rem; }

.evolution-chart { width: 100%; height: auto; margin-top: 0.5rem; }

.trilha-progress-row { margin-bottom: 1rem; }
.trilha-progress-row:last-child { margin-bottom: 0; }
.trilha-progress-link { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.3); }
.trilha-progress-link:hover { color: #2dd4bf; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .stat-cards .stat-card { padding: 0.85rem 0.5rem; }
    .stat-cards .stat-value { font-size: 1.45rem; }
    .stat-cards .stat-label { font-size: 0.72rem; }

    /* chips de tema em linha unica ocupando toda a largura */
    #progressoContent .topic-breakdown { gap: 0.5rem; }
    #progressoContent .topic-result-chip {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 0.35rem;
    }
    #progressoContent .topic-chip-name { flex: 1 1 100%; }
    #progressoContent .topic-practice-link { margin-left: auto; }

    /* cabecalhos nome + score empilham sem apertar */
    #progressoContent .domain-result-header {
        flex-wrap: wrap;
        gap: 0.15rem 0.6rem;
        font-size: 0.85rem;
    }

    #progressoContent .form-card { padding: 1.1rem 0.9rem; }
    #progressoContent .form-card h3 { font-size: 1.02rem; }
    #progressoContent .form-card h3 small { display: block; font-size: 0.75rem; opacity: 0.7; margin-top: 0.15rem; }
}
