/* ========================================
   인포그래픽 결과 페이지 스타일
   ======================================== */

/* 결과 헤더 - 임팩트 있는 디자인 */
.result-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: 20px;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.result-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.result-header h2 {
    font-size: var(--font-display-2);
    font-weight: var(--font-extrabold);
    color: #FFFFFF !important;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
}

.result-header p {
    font-size: var(--font-body-lg);
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

/* 점수 그리드 - 모던한 카드 디자인 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.score-card {
    background: #ffffff;
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #7B68EE);
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.score-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.score-icon i {
    font-size: 1.8rem;
    color: white;
}

.score-content h3 {
    font-size: var(--font-h4);
    font-weight: var(--font-bold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-normal);
}

.score-value {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}

.score-number {
    font-size: var(--font-display-2);
    font-weight: var(--font-extrabold);
    color: #4A90E2 !important;
    line-height: var(--line-height-tight);
}

.score-max {
    font-size: var(--font-body-lg);
    color: #718096 !important;
    font-weight: var(--font-medium);
}

.score-label {
    font-size: var(--font-body-sm);
    color: #718096 !important;
    margin-top: var(--spacing-xs);
}

/* 진단 결과 - 세련된 레이아웃 */
.result-diagnosis {
    background: #ffffff;
    border-radius: 20px;
    padding: var(--spacing-2xl);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-2xl);
}

.diagnosis-level {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: var(--font-bold);
    font-size: var(--font-body);
    margin-bottom: var(--spacing-lg);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.diagnosis-title {
    font-size: var(--font-display-3);
    font-weight: var(--font-extrabold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.diagnosis-description {
    font-size: var(--font-body-lg);
    color: #2d3748 !important;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xl);
}

/* 임상 해석 - 프로페셔널한 디자인 */
.clinical-interpretation,
.detailed-interpretation {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: var(--spacing-2xl);
    border-radius: 16px;
    border-left: 6px solid #4A90E2;
    margin: var(--spacing-2xl) 0;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

.clinical-interpretation h4,
.detailed-interpretation h4 {
    font-size: var(--font-h3);
    font-weight: var(--font-bold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    letter-spacing: var(--letter-spacing-normal);
}

.clinical-interpretation h4 i,
.detailed-interpretation h4 i {
    font-size: var(--font-h2);
    color: #4A90E2;
}

.interpretation-content {
    font-size: var(--font-body);
    color: #2d3748 !important;
    line-height: var(--line-height-relaxed);
}

.interpretation-content strong {
    display: block;
    font-size: var(--font-h5);
    font-weight: var(--font-bold);
    color: #1a202c !important;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

/* 생활 가이드라인 - 체계적인 레이아웃 */
.lifestyle-guidelines {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    padding: var(--spacing-2xl);
    border-radius: 16px;
    border: 2px solid rgba(123, 104, 238, 0.2);
    margin: var(--spacing-2xl) 0;
    box-shadow: 0 4px 20px rgba(123, 104, 238, 0.1);
}

.lifestyle-guidelines > h4 {
    font-size: var(--font-h2);
    font-weight: var(--font-extrabold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    letter-spacing: var(--letter-spacing-tight);
}

.lifestyle-guidelines > h4 i {
    font-size: var(--font-display-3);
    color: #7B68EE;
}

.guideline-category {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    border-left: 5px solid #7B68EE;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.guideline-category:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(123, 104, 238, 0.15);
}

.guideline-category h5 {
    font-size: var(--font-h4);
    font-weight: var(--font-bold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.guideline-category h5 i {
    font-size: var(--font-h3);
    color: #7B68EE;
}

.guideline-items {
    list-style: none;
    padding-left: 0;
}

.guideline-items li {
    padding: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
    position: relative;
    color: #2d3748 !important;
    font-size: var(--font-body);
    line-height: var(--line-height-relaxed);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.guideline-items li:last-child {
    border-bottom: none;
}

.guideline-items li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: var(--spacing-md);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #52C41A, #73d13d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--font-body-sm);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

/* 권장 사항 섹션 */
.recommendation-section {
    margin: var(--spacing-2xl) 0;
    background: #f7fafc;
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid #4A90E2;
}

.recommendation-section h4 {
    font-size: var(--font-h4);
    font-weight: var(--font-bold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.recommendation-section h4 i {
    font-size: var(--font-h3);
    color: #4A90E2;
}

.recommendation-list {
    list-style: none;
    padding-left: 0;
}

.recommendation-list li {
    padding: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
    position: relative;
    color: #2d3748 !important;
    font-size: var(--font-body);
    line-height: var(--line-height-relaxed);
}

.recommendation-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: var(--font-bold);
    font-size: var(--font-h5);
}

/* 응답 내역 섹션 - 깔끔한 디자인 */
.response-section {
    margin-bottom: var(--spacing-2xl);
    background: #f7fafc;
    padding: var(--spacing-xl);
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.1);
}

.response-section-title {
    font-size: var(--font-h4);
    font-weight: var(--font-bold);
    color: #1a202c !important;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.response-section-title i {
    font-size: var(--font-h3);
    color: #4A90E2;
}

.response-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: #ffffff;
    border-left: 4px solid #4A90E2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.response-item:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    transform: translateX(3px);
}

.response-question {
    font-size: var(--font-body-sm);
    font-weight: var(--font-medium);
    color: #2d3748 !important;
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-normal);
}

.response-answer {
    font-size: var(--font-body);
    font-weight: var(--font-semibold);
    color: #4A90E2 !important;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.response-answer-score {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-body-sm);
    font-weight: var(--font-bold);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* 레벨 배지 - 더 명확한 디자인 */
.diagnosis-level {
    position: relative;
    overflow: hidden;
}

.diagnosis-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

.level-0 { 
    background: linear-gradient(135deg, #F59E0B, #D97706); 
    color: white; 
}
.level-1 { 
    background: linear-gradient(135deg, #52C41A, #389e0d); 
    color: white; 
}
.level-2 { 
    background: linear-gradient(135deg, #13C2C2, #08979c); 
    color: white; 
}
.level-3 { 
    background: linear-gradient(135deg, #1890FF, #096dd9); 
    color: white; 
}
.level-4 { 
    background: linear-gradient(135deg, #722ED1, #531dab); 
    color: white; 
}
.level-5 { 
    background: linear-gradient(135deg, #F5222D, #cf1322); 
    color: white; 
}
.level-6 { 
    background: linear-gradient(135deg, #8B0000, #5c0000); 
    color: white; 
}

/* 액션 버튼 - 더 눈에 띄게 */
.result-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin: var(--spacing-2xl) 0;
    flex-wrap: wrap;
}

.result-actions .btn {
    font-size: var(--font-body);
    font-weight: var(--font-semibold);
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .result-header h2 {
        font-size: var(--font-display-3);
    }
    
    .diagnosis-title {
        font-size: var(--font-h2);
    }
    
    .score-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .result-header h2 {
        font-size: var(--font-h2);
    }
    
    .diagnosis-title {
        font-size: var(--font-h3);
    }
    
    .lifestyle-guidelines > h4 {
        font-size: var(--font-h3);
    }
}
