/* ================================================================
   실전 투자 경험 섹션 - 모바일 최적화 v2.0
   목적: 교육 자료 섹션의 가독성과 임팩트 극대화 (모바일 우선)
   ================================================================ */

/* ===== 헷지 전략 박스 모바일 개선 ===== */
@media (max-width: 768px) {
    /* 헤더 박스 */
    .performance .hedge-strategy-box {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
    }
    
    .performance .hedge-strategy-box p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    .performance .hedge-strategy-box strong {
        font-size: 16px !important;
    }
}

/* ===== 자산군별 비중 분석 - 모바일 1열 ===== */
@media (max-width: 768px) {
    .asset-allocation-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .asset-allocation-card {
        padding: 18px 15px !important;
    }
    
    .asset-allocation-card .label {
        font-size: 14px !important;
    }
    
    .asset-allocation-card .value {
        font-size: 24px !important;
    }
    
    .asset-allocation-card .note {
        font-size: 11px !important;
    }
}

/* ===== 핵심/위성 포트폴리오 - 모바일 1열 ===== */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .portfolio-card {
        padding: 20px 15px !important;
    }
    
    .portfolio-card .header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .portfolio-card .header .emoji {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    
    .portfolio-card .header .title {
        font-size: 16px !important;
    }
    
    .portfolio-card .header .subtitle {
        font-size: 13px !important;
    }
    
    .portfolio-card .table-header,
    .portfolio-card .table-row {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
    
    .portfolio-card .table-row strong {
        font-size: 14px !important;
    }
}

/* ===== 차트 섹션 모바일 개선 ===== */
@media (max-width: 768px) {
    .chart-section,
    .returns-section {
        margin-bottom: 30px !important;
    }
    
    .chart-section h3,
    .returns-section h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .chart-subtitle,
    .returns-subtitle {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    .chart-section canvas,
    .returns-section canvas {
        height: 300px !important;
    }
    
    .chart-note {
        padding: 15px 12px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .chart-note strong {
        font-size: 14px !important;
    }
    
    /* 범례 모바일 */
    .legend-container {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .legend-item {
        font-size: 13px !important;
    }
    
    .legend-item .legend-box {
        width: 16px !important;
        height: 16px !important;
    }
}

/* ===== 강조 박스 디자인 개선 ===== */
@media (max-width: 768px) {
    .emphasis-box {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
        border-radius: 10px !important;
    }
    
    .emphasis-box h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .emphasis-box p {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
}

/* ===== 데스크탑 디자인 강화 (768px 이상) ===== */
@media (min-width: 769px) {
    /* 헷지 전략 박스 */
    .performance .hedge-strategy-box {
        padding: 30px 35px !important;
        margin: 40px 0 !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .performance .hedge-strategy-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
    }
    
    /* 자산군별 비중 카드 */
    .asset-allocation-card {
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .asset-allocation-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    }
    
    /* 포트폴리오 카드 */
    .portfolio-card {
        transition: all 0.3s ease;
    }
    
    .portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }
    
    /* 차트 섹션 */
    .chart-section,
    .returns-section {
        transition: all 0.3s ease;
    }
    
    .chart-section:hover,
    .returns-section:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }
}

/* ===== 타이포그래피 개선 ===== */
.performance .section-title {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.performance .section-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

/* ===== 색상 강조 ===== */
.highlight-gold {
    color: #d4af37;
    font-weight: 700;
}

.highlight-blue {
    color: #2c5aa0;
    font-weight: 700;
}

.highlight-pink {
    color: #f093fb;
    font-weight: 700;
}

/* ===== 아이콘 크기 조정 ===== */
.icon-large {
    font-size: 20px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .icon-large {
        font-size: 18px;
        margin-right: 8px;
    }
}

/* ===== 그림자 효과 강화 ===== */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 모바일 전용 간격 조정 ===== */
@media (max-width: 768px) {
    .performance {
        padding: 40px 0 !important;
    }
    
    .performance .container {
        padding: 0 20px !important;
    }
    
    .performance-content {
        gap: 30px !important;
    }
}

/* ===== 테이블 가독성 개선 ===== */
.table-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px 0;
    border-radius: 5px;
    margin-bottom: 5px;
}

.table-row {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    transition: background 0.2s ease;
}

.table-row:hover {
    background: rgba(0,0,0,0.02);
}

.table-row:last-child {
    border-bottom: none;
}

/* ===== 접근성 개선 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== 인쇄 스타일 ===== */
@media print {
    .performance {
        page-break-inside: avoid;
    }
    
    .chart-section,
    .returns-section {
        page-break-inside: avoid;
    }
}
