/* ================================================================
   Strategy 페이지 개선 - 가독성 & 전문성 강화 v1.0
   목적: 텍스트 하이라이트 + Tooltip으로 전문성과 친절함 양립
   ================================================================ */

/* ===== 형광펜 효과 (Highlight) ===== */
.highlight {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,235,59,0.4) 50%);
    padding: 2px 4px;
    font-weight: 600;
    color: #000;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.highlight:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,235,59,0.6) 50%);
}

/* 핑크 하이라이트 (위험/주의사항) */
.highlight-pink {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,152,203,0.4) 50%);
    padding: 2px 4px;
    font-weight: 600;
    color: #000;
}

/* 블루 하이라이트 (전략/방법론) */
.highlight-blue {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(100,181,246,0.4) 50%);
    padding: 2px 4px;
    font-weight: 600;
    color: #000;
}

/* 그린 하이라이트 (이점/장점) */
.highlight-green {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(129,199,132,0.4) 50%);
    padding: 2px 4px;
    font-weight: 600;
    color: #000;
}

/* ===== 강조 텍스트 (Strong Emphasis) ===== */
.emphasis-strong {
    font-weight: 700;
    color: #d4af37;
    font-size: 1.05em;
}

.emphasis-critical {
    font-weight: 700;
    color: #e74c3c;
    font-size: 1.05em;
}

.emphasis-primary {
    font-weight: 700;
    color: #667eea;
    font-size: 1.05em;
}

/* ===== Tooltip 스타일 ===== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #999;
}

.tooltip .tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    cursor: help;
    transition: all 0.3s ease;
}

.tooltip .tooltip-icon:hover {
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    background-color: rgba(40,44,52,0.97);
    color: #fff;
    text-align: left;
    padding: 15px 18px;
    border-radius: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Tooltip 화살표 */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(40,44,52,0.97) transparent transparent transparent;
}

/* Hover 시 표시 */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 모바일 대응: Tooltip을 하단에 표시 */
@media (max-width: 768px) {
    .tooltip .tooltip-text {
        width: 280px;
        margin-left: -140px;
        bottom: auto;
        top: 125%;
    }
    
    .tooltip .tooltip-text::after {
        top: auto;
        bottom: 100%;
        border-color: transparent transparent rgba(40,44,52,0.97) transparent;
    }
}

/* ===== 리스트 스타일 개선 ===== */
.strategy-card li strong,
.phase-section li strong {
    font-weight: 700;
    color: #333;
    font-size: 1.05em;
}

/* ===== 키워드 강조 박스 ===== */
.keyword-box {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 3px;
    white-space: nowrap;
}

.keyword-box-gold {
    background: linear-gradient(135deg, #d4af37 0%, #c4a853 100%);
}

.keyword-box-green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.keyword-box-blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* ===== 중요 문단 강조 ===== */
.important-paragraph {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 4px solid #d4af37;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.important-paragraph p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.important-paragraph strong {
    color: #d4af37;
    font-weight: 700;
}

/* ===== 단계별 프로세스 강조 ===== */
.process-step {
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #d4af37;
}

.process-step h4 {
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ===== 숫자 강조 (금액, 퍼센트) ===== */
.number-emphasis {
    font-family: 'Noto Sans KR', monospace;
    font-weight: 700;
    color: #d4af37;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* ===== 경고 박스 ===== */
.warning-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-left: 4px solid #e74c3c;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.warning-box p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.warning-box strong {
    color: #e74c3c;
    font-weight: 700;
}

.warning-box::before {
    content: "⚠️";
    font-size: 20px;
    margin-right: 10px;
}

/* ===== 성공 사례 박스 ===== */
.success-box {
    background: linear-gradient(135deg, #f0fff4 0%, #d9f7e5 100%);
    border-left: 4px solid #2ecc71;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.success-box p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.success-box strong {
    color: #2ecc71;
    font-weight: 700;
}

.success-box::before {
    content: "✅";
    font-size: 20px;
    margin-right: 10px;
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 768px) {
    .highlight,
    .highlight-pink,
    .highlight-blue,
    .highlight-green {
        font-size: 14px;
        padding: 1px 3px;
    }
    
    .tooltip .tooltip-icon {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 10px;
        margin-left: 3px;
    }
    
    .keyword-box {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .important-paragraph,
    .warning-box,
    .success-box {
        padding: 15px 18px;
        margin: 15px 0;
    }
    
    .process-step {
        padding: 18px;
    }
    
    .number-emphasis {
        font-size: 1.05em;
    }
}

/* ===== 인쇄 스타일 ===== */
@media print {
    .tooltip .tooltip-text {
        display: none;
    }
    
    .highlight,
    .highlight-pink,
    .highlight-blue,
    .highlight-green {
        background: none;
        border-bottom: 2px solid #000;
    }
}

/* ===== 애니메이션 ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== 접근성 개선 ===== */
@media (prefers-reduced-motion: reduce) {
    .tooltip .tooltip-icon:hover,
    .process-step:hover {
        transform: none;
    }
}
