/* ============================================
   모바일 뉴스 뷰 스킨 1
   모바일 디바이스 최적화 레이아웃
   ============================================ */

.mobile_news_view {
    background: #fff;
    padding: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    min-height: calc(100vh - 120px); /* 헤더 높이 제외 */
    padding-bottom: 40px; /* 하단 여백 */
}

/* ======= 상단 바 (카테고리 + 공유) ======= */
.view_top_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.view_category {
    font-size: 13px;
    font-weight: 700;
    color: #1a9ba8;
    padding: 4px 10px;
    background: #e8f5f7;
    border-radius: 3px;
}

.btn_share {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.btn_share:active {
    color: #1a9ba8;
}

.btn_share svg {
    display: block;
}

/* ======= 제목 ======= */
.view_title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin: 0 0 15px 0;
    word-break: keep-all;
}

/* ======= 부제목 ======= */
.view_subtitle {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 0 0 20px 0;
    border-left: 3px solid #1a9ba8;
}

.view_subtitle p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.view_subtitle p:last-child {
    margin-bottom: 0;
}

/* ======= 메타 정보 ======= */
.view_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
}

.meta_info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.meta_author {
    font-weight: 600;
    color: #333;
}

.meta_sep {
    color: #ddd;
}

.meta_date {
    color: #999;
}

.meta_stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat_item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 12px;
}

.stat_item svg {
    fill: none;
    stroke-width: 1.5;
}

/* ======= 본문 ======= */
.view_content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-break: keep-all;
    margin-bottom: 30px;
}

.view_content p {
    margin: 0 0 20px 0;
}

.view_content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.view_content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a9ba8;
    color: #000;
}

.view_content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 12px 0;
    color: #333;
}

.view_content ul,
.view_content ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.view_content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.view_content a {
    color: #5AB2FF;
    text-decoration: underline;
}

.view_content a:active {
    color: #4a9fdf;
}

/* 본문 내 이미지 컨테이너 */
.view_content .image-align-wrapper-left,
.view_content .image-align-wrapper-center,
.view_content .image-align-wrapper-right {
    margin: 20px 0;
}

.view_content .image-with-caption {
    display: block;
    max-width: 100%;
}

.view_content .image-with-caption img {
    max-width: 100%;
    height: auto;
    display: block;
}

.view_content .image-caption-box {
    background: #f8f8f8;
    padding: 8px 10px;
    margin-top: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ======= 출처 ======= */
.view_source {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.view_source a {
    color: #5AB2FF;
    text-decoration: none;
    font-weight: 600;
}

.view_source a:active {
    text-decoration: underline;
}

/* ======= 키워드 ======= */
.view_keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.keyword_tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    border-radius: 15px;
    transition: all 0.2s;
}

.keyword_tag:active {
    background: #1a9ba8;
    color: #fff;
}

/* ======= 관련 뉴스 ======= */
.view_related {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 2px solid #e5e5e5;
}

.view_related h3 {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

.related_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related_list li {
    position: relative;
    padding-left: 12px;
}

.related_list li::before {
    content: 'ㄴ';
    position: absolute;
    left: 0;
    top: 0;
    color: #22b14c;
    font-size: 14px;
    font-weight: 700;
}

.related_list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.related_list a:active {
    color: #22b14c;
}

/* ======= 반응형 - 작은 모바일 ======= */
@media (max-width: 360px) {
    .mobile_news_view {
        padding: 12px;
    }
    
    .view_title {
        font-size: 20px;
    }
    
    .view_subtitle p {
        font-size: 14px;
    }
    
    .view_content {
        font-size: 15px;
    }
}

/* ======= 반응형 - 큰 모바일/태블릿 ======= */
@media (min-width: 480px) {
    .mobile_news_view {
        padding: 20px;
    }
    
    .view_title {
        font-size: 24px;
    }
    
    .view_subtitle p {
        font-size: 16px;
    }
    
    .view_content {
        font-size: 17px;
    }
}

@media (min-width: 768px) {
    .mobile_news_view {
        max-width: 768px;
        margin: 0 auto;
        padding: 25px 30px;
    }
    
    .view_title {
        font-size: 26px;
    }
}

/* ======= 다크모드 비활성화 - 항상 화이트 배경 ======= */
/* 다크모드 설정 제거됨 */

/* ======= 프린트 전용 스타일 ======= */
@media print {
    .view_top_bar,
    .btn_share,
    .view_keywords,
    .view_related {
        display: none !important;
    }
    
    .mobile_news_view {
        padding: 0;
    }
    
    .view_title {
        font-size: 18pt;
        margin-bottom: 10pt;
    }
    
    .view_content {
        font-size: 11pt;
        line-height: 1.6;
    }
    
    .view_content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
