@charset "utf-8";

/* 종합 성적 현황 섹션 */
.summary-section {
    padding: 40px 25px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f5f8fb 0%, #fafafa 100%);
    border-radius: 12px;
    border: 1px solid #e0e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 섹션 제목 */
.summary-section > h4 {
    margin: 0 0 30px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}



/* 그래프 영역 */
.score-trend-container {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: 12px;
    border: 1px solid #e0e8f0;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.08);
    transition: all 0.3s ease;
}

.score-trend-container h5 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 차트 안내 메모 */
.chart-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
    border-radius: 4px;
    font-size: 13px;
    color: #1565c0;
}

.chart-note .note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background-color: #2196f3;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.chart-note .note-text {
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.score-trend-chart {
    position: relative;
    height: 350px;
    padding: 10px 0;
    overflow-y: hidden;
    overflow-x: auto;
    width: 100%;
}

.score-trend-chart canvas {
    display: block;
}

/* 취약 영역 TOP 10 섹션 */
.vulnerability-container {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: 12px;
    border: 1px solid #e0e8f0;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.08);
    transition: all 0.3s ease;
}

.vulnerability-container h5 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 취약 영역 섹션 */
.weak-areas-container {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8eef5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.weak-areas-container h5 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weak-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.weak-area-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbfc 100%);
    border-radius: 8px;
    border: 1px solid #e8eef5;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.weak-area-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0dce8;
    transform: translateY(-2px);
}

.weak-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background-color: inherit;
}

.weak-area-rank {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
}

.weak-area-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: break-word;
}

.weak-area-score {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}

.weak-area-detail {
    font-size: 10px;
    color: #999;
}

/* 데이터 없음 상태 */
.no-data-message {
    text-align: center;
    color: #999;
    padding: 30px 20px;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 1024px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .weak-areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .score-trend-chart {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .summary-section {
        padding: 25px 15px;
        margin-bottom: 20px;
    }

    .summary-section > h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .summary-stat-item {
        padding: 15px 10px;
    }

    .summary-stat-item .value {
        font-size: 20px;
    }

    .weak-areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }

    .score-trend-chart {
        height: 400px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
    }

    .score-trend-container,
    .weak-areas-container,
    .vulnerability-container {
        padding: 18px 12px;
    }

    .score-trend-container h5,
    .weak-areas-container h5,
    .vulnerability-container h5 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .vulnerability-container {
        margin-bottom: 20px;
    }

    .chart-note {
        font-size: 12px;
        padding: 8px 10px;
        margin-bottom: 12px;
    }

    .chart-note .note-icon {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .chart-note .note-text {
        line-height: 1.3;
    }
}