/* ══════════════════════════════════════════════════════════════════
   SKILL MAP v2.0 — Radim Growth Visualization
   Dignified, calm, senior-friendly. Production CSS.
   ══════════════════════════════════════════════════════════════════ */

#module-skillmap {
    color: #2d3748;
    background: #f8fafa;
    min-height: 100vh;
}

/* ── Dashboard container ── */
.sm-dashboard {
    padding: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* ── Loading state ── */
.sm-loading {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 1rem;
}
.sm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(91,168,160,0.2);
    border-top: 3px solid #5BA8A0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* ── Summary card (top hero) ── */
.sm-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #5BA8A0 0%, #4A9690 100%);
    color: white;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 6px 24px rgba(91,168,160,0.3);
}
.sm-summary-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
}
.sm-summary-text h3 {
    font-size: 1.2rem;
    margin: 0 0 6px;
    font-weight: 700;
}
.sm-summary-text p {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
    line-height: 1.5;
}

/* ── Radar chart section ── */
.sm-radar-section {
    margin-bottom: 28px;
}
.sm-radar-section h3 {
    color: #2d3748;
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.sm-radar-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}
.sm-radar-svg {
    max-width: 100%;
    height: auto;
}

/* ── Skill cards grid ── */
.sm-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.sm-skill-card {
    background: white;
    border-radius: 16px;
    padding: 16px 18px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sm-skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.sm-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.sm-skill-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-skill-icon {
    font-size: 1.4rem;
}
.sm-skill-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d3748;
}
.sm-skill-score {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.sm-skill-level {
    font-size: 0.82rem;
    color: #718096;
    margin-bottom: 10px;
    line-height: 1.3;
}
.sm-skill-bar {
    height: 6px;
    background: #edf2f7;
    border-radius: 6px;
    overflow: hidden;
}
.sm-skill-fill {
    height: 100%;
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.8s ease;
}
.sm-skill-reason {
    font-size: 0.78rem;
    color: #a0aec0;
    margin-top: 8px;
    line-height: 1.35;
    font-style: italic;
}

/* ── Learning insights feed ── */
.sm-insights {
    margin-bottom: 28px;
}
.sm-insights h3 {
    color: #2d3748;
    font-size: 1.05rem;
    margin-bottom: 14px;
    font-weight: 700;
}
.sm-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.sm-insight-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.sm-insight-text {
    flex: 1;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
}
.sm-insight-when {
    font-size: 0.75rem;
    color: #a0aec0;
    white-space: nowrap;
    margin-top: 2px;
}

/* ── Direction section ── */
.sm-direction {
    margin-bottom: 28px;
}
.sm-direction h3 {
    color: #2d3748;
    font-size: 1.05rem;
    margin-bottom: 14px;
    font-weight: 700;
}
.sm-direction-primary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #5BA8A0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(91,168,160,0.12);
}
.sm-direction-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}
.sm-direction-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.4;
}
.sm-direction-secondary {
    padding: 12px 18px;
    background: #f7fafc;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
}

/* ── Mobile responsive ── */
@media (max-width: 520px) {
    .sm-skills-grid {
        grid-template-columns: 1fr;
    }
    .sm-summary-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .sm-summary-icon {
        font-size: 2.4rem;
    }
    .sm-radar-svg {
        max-width: 340px;
    }
    .sm-dashboard {
        padding: 12px;
    }
    .sm-skill-card {
        padding: 14px;
    }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .sm-skill-fill { transition: none; }
    .sm-skill-card { transition: none; }
    .sm-spinner { animation: none; }
}
