/* ═══════════════════════════════════════════════════
   CURVAS DE CRESCIMENTO
═══════════════════════════════════════════════════ */

.cc-container {
    max-width: 980px;
    margin: 0 auto;
}

.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.cc-header-title { display: flex; align-items: center; gap: 0.9rem; }
.cc-header-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
}
.cc-header-title h2 { margin: 0 0 0.15rem; font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.cc-header-title p { margin: 0; color: #64748b; font-size: 0.85rem; }
[data-theme="dark"] .cc-header-title h2 { color: #f1f5f9; }

.cc-intro {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
[data-theme="dark"] .cc-intro { background: #111d2e; border-color: #1e3550; color: #94a3b8; }

/* ── Seções por categoria ── */
.cc-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}
[data-theme="dark"] .cc-section { background: #1e293b; border-color: #334155; }

.cc-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}
.cc-section-header:hover { background: #f8fafc; }
[data-theme="dark"] .cc-section-header:hover { background: #16233a; }

.cc-section-info { flex: 1; min-width: 0; }
.cc-section-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0; }
.cc-section-desc { font-size: 0.78rem; color: #94a3b8; margin: 0.1rem 0 0; }
[data-theme="dark"] .cc-section-title { color: #f1f5f9; }

.cc-section-chevron { color: #94a3b8; transition: transform 0.2s; flex-shrink: 0; }
.cc-section.open .cc-section-chevron { transform: rotate(180deg); }

.cc-section-body { display: none; padding: 0 1.25rem 1.25rem; }
.cc-section.open .cc-section-body { display: block; }

/* ── Colunas Meninas/Meninos ── */
.cc-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 640px) {
    .cc-cols { grid-template-columns: 1fr; }
}

.cc-col-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.6rem;
}
.cc-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cc-col-dot.f { background: #ec4899; }
.cc-col-dot.m { background: #3b82f6; }

.cc-col { display: flex; flex-direction: column; gap: 0.5rem; }

.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.cc-row:hover { border-color: #0891b2; background: #ecfeff; }
[data-theme="dark"] .cc-row { background: #111d2e; border-color: #1e3550; }
[data-theme="dark"] .cc-row:hover { border-color: #0891b2; background: #0d2530; }

.cc-row-title { font-size: 0.82rem; font-weight: 600; color: #1d4ed8; }
[data-theme="dark"] .cc-row-title { color: #60a5fa; }

.cc-row-icon { color: #94a3b8; font-size: 0.85rem; flex-shrink: 0; }

.cc-row-unisex { grid-column: 1 / -1; }

.cc-empty-note {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    padding: 0.5rem 0;
}

/* ── Modal do gráfico ── */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
    padding: 1rem;
}
.cc-modal-overlay.open { display: flex; }

.cc-modal {
    background: #fff;
    border-radius: 20px;
    width: min(720px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
[data-theme="dark"] .cc-modal { background: #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,0.55); }

.cc-modal-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.25rem; }
.cc-modal-header-info { flex: 1; min-width: 0; }
.cc-modal-header h3 { margin: 0 0 0.15rem; font-size: 1.1rem; font-weight: 800; color: #0f172a; }
[data-theme="dark"] .cc-modal-header h3 { color: #f1f5f9; }
.cc-modal-sub { font-size: 0.78rem; color: #94a3b8; margin: 0; }

.cc-modal-close {
    background: none; border: none; font-size: 1.05rem; cursor: pointer;
    color: #94a3b8; padding: 0.25rem; line-height: 1; flex-shrink: 0;
}
.cc-modal-close:hover { color: #475569; }
[data-theme="dark"] .cc-modal-close:hover { color: #cbd5e1; }

.cc-chart-wrap { margin: 1rem 0; }

.cc-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
[data-theme="dark"] .cc-input-row { background: #111d2e; border-color: #1e3550; }

.cc-input-field { display: flex; flex-direction: column; gap: 0.3rem; }
.cc-input-field label { font-size: 0.72rem; font-weight: 700; color: #64748b; }
[data-theme="dark"] .cc-input-field label { color: #94a3b8; }
.cc-input-field input {
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    width: 130px;
    outline: none;
    background: #fff;
    color: #0f172a;
}
.cc-input-field input:focus { border-color: #0891b2; }
[data-theme="dark"] .cc-input-field input { background: #0d1828; border-color: #1e3550; color: #f1f5f9; }

.cc-idade-duplo { display: flex; gap: 0.6rem; }
.cc-idade-sub { display: flex; align-items: center; gap: 0.35rem; }
.cc-idade-sub input {
    width: 58px;
    padding: 0.55rem 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    background: #fff;
    color: #0f172a;
    text-align: center;
}
.cc-idade-sub input:focus { border-color: #0891b2; }
[data-theme="dark"] .cc-idade-sub input { background: #0d1828; border-color: #1e3550; color: #f1f5f9; }
.cc-idade-sub span { font-size: 0.78rem; color: #64748b; white-space: nowrap; }
[data-theme="dark"] .cc-idade-sub span { color: #94a3b8; }

.cc-btn-marcar {
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff; border: none; border-radius: 8px;
    font-size: 0.85rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 0.4rem;
}
.cc-btn-marcar:hover { opacity: 0.9; }

.cc-interpretacao {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    display: none;
}
.cc-interpretacao.show { display: block; }
.cc-interpretacao.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.cc-interpretacao.alerta { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
[data-theme="dark"] .cc-interpretacao.ok { background: rgba(34,197,94,0.12); border-color: #166534; color: #86efac; }
[data-theme="dark"] .cc-interpretacao.alerta { background: rgba(239,68,68,0.12); border-color: #b91c1c; color: #fca5a5; }
