@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

/* [기초 설정] 리셋 및 폰트 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #2f3438;
    background-color: #f9f9f9;
    font-size: 17px;
    line-height: 1.75;
    word-break: keep-all;
    letter-spacing: -0.03em;
}
a { color: inherit; text-decoration: none; transition: all 0.2s; }
a:hover { color: #0056b3; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; display: block; }
.inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }

/* [헤더] */
#header { background-color: #fff; border-bottom: 1px solid #eee; padding: 15px 0; position: relative; z-index: 1000; }
#header .inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
#header .logo h1, #header .logo .h1 { font-size: 22px; font-weight: 700; color: #111; }
#header .logo p.description { font-size: 13px; color: #888; margin-top: 4px; font-weight: 400; }
#header .nav ul { display: flex; }
#header .nav li { margin-left: 25px; }
#header .nav a { font-size: 16px; font-weight: 700; color: #444; }
#header .nav a:hover { color: #007bff; }
.mobile-menu-btn { display: none; }

/* [메인 레이아웃] */
#main { padding: 50px 0; }
#main .inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.content-area { flex: 1; background-color: #fff; padding: 50px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); max-width: calc(100% - 340px); }
#sidebar { width: 300px; flex-shrink: 0; }

/* [SEO 핵심] 광고 박스 CLS 방지 및 최적화 */
.ad-box {
    width: 100%;
    margin: 40px auto;
    text-align: center;
    background-color: #f8f9fa;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}
.ad-box iframe, .ad-box ins { max-width: 100%; display: inline-block; }

/* [리스트] */
.list-item { display: flex; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #f1f1f1; }
.list-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.list-item .thumbnail { width: 240px; flex-shrink: 0; margin-right: 30px; border-radius: 12px; overflow: hidden; background: #eee; position: relative; }
.list-item .thumbnail img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s; }
.list-item:hover .thumbnail img { transform: scale(1.05); }
.list-item .text-box { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-item .text-box.no-thumb { padding-left: 0; }
.list-item .category { font-size: 13px; color: #007bff; font-weight: 700; margin-bottom: 10px; display: inline-block; }
.list-item h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; word-break: keep-all; color: #111; }
.list-item h2 a:hover { text-decoration: underline; }
.list-item .summary { color: #666; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.list-item .date { font-size: 13px; color: #999; }

/* [본문 뷰] */
.article-view { padding-bottom: 40px; margin-bottom: 40px; }
.article-view .article-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.article-view .title { font-size: 34px; line-height: 1.35; color: #111; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; }
.article-view .meta { font-size: 14px; color: #777; display: flex; align-items: center; }
.article-view .meta .category { color: #007bff; font-weight: 700; margin-right: 12px; }
.article-view .meta .date::before { content: ''; display: inline-block; width: 1px; height: 12px; background: #ddd; margin-right: 12px; vertical-align: middle; }

/* [본문 타이포그래피 - SEO 최적화 수정됨] */
.article-view .article-content { font-size: 17px; line-height: 1.8; color: #333; }
.article-view .article-content p { margin-bottom: 28px; word-break: break-word; }

/* H2: 메인 소제목 (기존 H3 스타일 적용 - 파란색 세로줄) */
.article-view .article-content h2 { 
    font-size: 24px; 
    border-left: 5px solid #007bff; /* 파란바 적용 */
    border-bottom: none; 
    padding-left: 15px; 
    padding-bottom: 0;
    margin: 60px 0 30px; 
    font-weight: 700; 
    line-height: 1.3;
    color: #111; 
}

/* H3: 하위 소제목 (기존 H2 스타일 적용 - 밑줄) */
.article-view .article-content h3 { 
    font-size: 21px; 
    margin: 50px 0 25px; 
    font-weight: 700; 
    border-left: none; 
    border-bottom: 2px solid #ddd; /* 밑줄 적용 */
    padding-left: 0; 
    padding-bottom: 10px;
    color: #333; 
}

.article-view .article-content h4 { font-size: 19px; margin: 40px 0 20px; font-weight: 700; color: #333; }
.article-view .article-content blockquote { margin: 30px 0; padding: 24px; border-left: 4px solid #007bff; background-color: #f0f7ff; color: #333; font-weight: 500; border-radius: 0 8px 8px 0; }
.article-view .article-content ul, .article-view .article-content ol { margin-bottom: 30px; padding-left: 20px; }
.article-view .article-content li { margin-bottom: 10px; list-style-type: disc; }
.article-view .article-content table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; border: 1px solid #ddd; }
.article-view .article-content th { background: #f1f3f5; font-weight: 700; padding: 12px; border: 1px solid #ddd; color: #333; }
.article-view .article-content td { padding: 12px; border: 1px solid #ddd; color: #555; }

/* [수익화 버튼 강조] - CTA */
.btn-link { 
    display: block; 
    width: 100%; 
    max-width: 350px; 
    margin: 30px auto; 
    padding: 16px 0; 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); 
    color: #fff !important; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 18px;
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,123,255,0.3); 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.btn-link:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,123,255,0.4); text-decoration: none; }

/* [정보 상자] */
.info-box { 
    background-color: #e7f5ff; 
    border: 1px solid #d0ebff; 
    border-radius: 12px; 
    padding: 24px; 
    margin: 30px 0; 
    color: #004085; 
}
.info-box h3 {
    margin: 0 0 15px 0 !important;
    font-size: 1.2em !important;
    border-bottom: 2px solid #dae0e5;
    padding-bottom: 10px;
    color: #0056b3;
    display: block;
}
.info-box ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.info-box li { position: relative; padding-left: 0; margin-bottom: 12px; line-height: 1.6; color: #333; font-size: 0.95em; display: block; }
.info-box strong, .info-box li strong { display: inline !important; font-size: inherit !important; margin: 0; color: #0056b3; font-weight: 700; }
.warn-box { background-color: #fff9db; border: 1px solid #ffe066; border-radius: 12px; padding: 20px; margin: 40px 0 20px; color: #664d03; font-size: 14px; text-align: center; }

/* [이미지 커버] */
.article-cover { width: 100%; height: 400px; border-radius: 16px; overflow: hidden; margin: 0 0 50px; background: #f4f4f4; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.article-cover__img { width: 100% !important; height: 100% !important; object-fit: cover; }

/* [기타 요소] */
.tags { margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.tags h3 { display: inline-block; font-size: 16px; margin-right: 15px; color: #333; }
.tags a { display: inline-block; background-color: #fff; border: 1px solid #ddd; color: #666; padding: 6px 16px; margin: 0 6px 8px 0; border-radius: 20px; font-size: 14px; transition: all 0.2s; }
.tags a:hover { background-color: #007bff; border-color: #007bff; color: #fff; }
.comments { margin-top: 50px; padding: 40px; background: #fff; border: 1px solid #eee; border-radius: 16px; }
.pagination { text-align: center; margin-top: 60px; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #eee; background-color: #fff; color: #555; border-radius: 8px; font-size: 15px; font-weight: 500; transition: all 0.2s; }
.pagination a:hover { background-color: #f8f8f8; border-color: #ddd; }
.pagination .selected { background-color: #007bff; color: #fff; border-color: #007bff; font-weight: 700; }

/* [사이드바] */
.widget { background-color: #fff; padding: 30px; margin-bottom: 20px; border: 1px solid #f1f1f1; border-radius: 12px; }
.widget h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #111; color: #111; }
.widget-search { display: flex; padding: 0; border: none; background: transparent; }
.widget-search input { flex: 1; height: 48px; padding: 0 15px; border: 1px solid #ddd; border-right: none; border-radius: 8px 0 0 8px; outline: none; font-size: 15px; }
.widget-search input:focus { border-color: #007bff; }
.widget-search button { width: 64px; height: 48px; border: 1px solid #222; background-color: #222; color: #fff; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 14px; font-weight: 700; }
.widget-category ul li { padding: 8px 0; }
.widget-category ul li a { color: #555; font-size: 15px; }
.widget-category ul li a:hover { color: #007bff; font-weight: 700; }
.widget-popular li, .widget-recent li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.widget-popular li a, .widget-recent li a { display: block; font-size: 15px; color: #444; line-height: 1.5; }
.widget-popular li a:hover, .widget-recent li a:hover { color: #007bff; }
.sticky-wrapper { position: -webkit-sticky; position: sticky; top: 20px; z-index: 100; }
.widget-ad { padding: 0; border: none; background: transparent; text-align: center; }
.widget-ad h3 { display: none; }

/* [푸터] */
#footer { background-color: #2f3438; color: #999; padding: 60px 0; margin-top: 80px; text-align: center; font-size: 14px; }
#footer .notice-partners { color: #ccc; margin-bottom: 20px; font-size: 14px; opacity: 0.8; }
#footer .copyright { color: #666; }

/* [반응형: 태블릿 & 모바일] */
@media (max-width: 1024px) {
    #main .inner { flex-direction: column; }
    .content-area { width: 100%; max-width: 100%; padding: 30px; }
    #sidebar { width: 100%; margin-top: 40px; }
    .sticky-wrapper { position: static; }
    .widget { display: inline-block; width: 48%; vertical-align: top; margin-right: 2%; margin-bottom: 0; }
    .widget:nth-child(2n) { margin-right: 0; }
    .widget-ad { display: block; width: 100%; margin-top: 20px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .inner { padding: 0 20px; }
    #header { padding: 10px 0; }
    #header .nav { display: none; }
    .mobile-menu-btn { display: block; background: #fff; color: #111; border: 1px solid #ddd; padding: 8px 14px; font-size: 14px; border-radius: 6px; cursor: pointer; font-weight: 700; }
    
    #wrap.mobile-menu-open .nav { display: block; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 999; border-top: 1px solid #eee; }
    #wrap.mobile-menu-open .nav ul { flex-direction: column; padding: 10px 0; }
    #wrap.mobile-menu-open .nav li { margin: 0; }
    #wrap.mobile-menu-open .nav a { display: block; padding: 15px 20px; border-bottom: 1px solid #f9f9f9; font-size: 16px; }

    .content-area { padding: 25px 20px; border-radius: 0; box-shadow: none; background: transparent; }
    .list-item { flex-direction: column; margin-bottom: 35px; padding-bottom: 35px; }
    .list-item .thumbnail { width: 100%; margin: 0 0 20px 0; border-radius: 8px; }
    .list-item .thumbnail img { height: 200px; }
    .list-item h2 { font-size: 20px; margin-bottom: 8px; }
    
    .article-view .title { font-size: 26px; line-height: 1.3; margin-bottom: 15px; }
    .article-view .article-content { font-size: 16px; line-height: 1.7; }
    .article-view .article-content h2 { font-size: 22px; margin: 40px 0 20px; }
    .article-view .article-content h3 { font-size: 20px; margin: 35px 0 20px; border-left-width: 0; border-bottom-width: 1px; }
    .article-cover { height: 220px; margin-bottom: 30px; }
    .btn-link { max-width: 100%; font-size: 16px; }
    
    .widget { display: block; width: 100%; margin-right: 0; margin-bottom: 20px; }
}

/* =========================================
   [젬스 AI 전용 확장 스타일] 
   ========================================= */

/* 1. 시나리오 분석 박스 */
.scenario-container { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; }
.scenario-box { padding: 25px; border-radius: 12px; border-left-width: 6px; border-left-style: solid; background-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* 낙관론 (파랑) */
.bull-case { background-color: #f0f7ff; border-left-color: #007bff; }
.bull-title { color: #0056b3; margin-bottom: 12px; font-size: 1.15em; font-weight: 700; display: flex; align-items: center; }

/* 비관론 (빨강) */
.bear-case { background-color: #fff5f5; border-left-color: #dc3545; }
.bear-title { color: #a71d2a; margin-bottom: 12px; font-size: 1.15em; font-weight: 700; display: flex; align-items: center; }

/* 2. 시나리오 내부 리스트 */
.scenario-list { margin: 0 !important; padding-left: 20px !important; list-style-type: disc !important; }
.scenario-list li { margin-bottom: 8px !important; line-height: 1.6 !important; color: #444; list-style-type: disc !important; }

/* 3. 형광펜 효과 */
.highlight { font-weight: 700; background: linear-gradient(to top, #fff3cd 40%, transparent 40%); padding: 0 2px; }

/* 4. 차트 컨테이너 (반응형 최적화) */
.chart-container { position: relative; width: 100%; margin: 30px auto; background: #fff; padding: 15px; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.03); text-align: center; }
/* 이미지 차트 반응형 추가 */
.chart-container img { width: 100%; height: auto; max-height: 400px; object-fit: contain; margin: 0 auto; }

/* 5. 참고자료 박스 */
.ref-box { background-color: #f9f9f9; border-left: 4px solid #666; padding: 15px 20px; margin-top: 40px; border-radius: 0 8px 8px 0; }
.ref-box a { display: block; margin-bottom: 5px; color: #555; text-decoration: none; font-size: 0.95em; }
.ref-box a:hover { color: #007bff; text-decoration: underline; }

/* 6. 모바일 최적화 */
@media (max-width: 768px) {
    .scenario-box { padding: 20px; }
    .bull-title, .bear-title { font-size: 1.1em; }
    .chart-container { padding: 10px; margin: 20px auto; }
}