/* ============================================
   모바일 상단 메뉴 스킨 1 - 뉴시스 스타일
   ============================================ */

/* 모바일 헤더 */
.mobile_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* 상단 바 */
.mobile_top_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* 로고 */
.mobile_logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mobile_logo_image {
    max-height: 40px;
    height: auto;
    vertical-align: middle;
}

.logo_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo_sub {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

.logo_main {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
}

/* 햄버거 메뉴 */
.mobile_menu_btn {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile_menu_btn .bar {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 네비게이션 탭 */
.mobile_nav_tabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #f0f0f0;
}

.mobile_nav_tabs::-webkit-scrollbar {
    display: none;
}

.nav_tab {
    flex-shrink: 0;
    padding: 14px 16px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.nav_tab.active {
    color: #000;
    font-weight: 700;
}

.nav_tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #5AB2FF;
}

/* 속보 배너 */
.breaking_news_banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.breaking_label {
    flex-shrink: 0;
    padding: 4px 10px;
    background: #5AB2FF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}

.breaking_text {
    flex: 1;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breaking_close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

/* 전체 메뉴 (슬라이드) */
.mobile_gnb {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile_gnb.active {
    right: 0;
}

/* 닫기 버튼 */
.mobile_gnb_close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

/* 검색 */
.gnb_search {
    padding: 60px 20px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.gnb_search form {
    position: relative;
}

.gnb_search_input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.gnb_search_btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* 주요 링크 */
.gnb_quick_links {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.quick_link {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

/* 섹션 타이틀 */
.gnb_section_title {
    padding: 15px 20px;
    background: #f8f8f8;
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

/* 카테고리 리스트 (계층 구조) */
.gnb_category_list {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.category_group {
    margin-bottom: 15px;
}

.category_main {
    display: block;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.category_main:active {
    transform: scale(0.98);
}

.category_subs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding-left: 10px;
}

.category_sub {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.category_sub:active {
    background: #e7f3ff;
    color: #667eea;
}

/* 기타 섹션 */
.gnb_other_sections {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gnb_other_sections li {
    border-bottom: 1px solid #f0f0f0;
}

.gnb_other_sections li.pc_version {
    background: #f8f8f8;
}

.gnb_other_sections a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.gnb_other_sections a:active {
    background: #f0f0f0;
}

/* 오버레이 */
.mobile_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* body 스크롤 막기 */
body.menu_open {
    overflow: hidden;
}

/* 모바일 GNB 컨텐츠 */
.mobile_gnb_content {
    padding: 60px 0 20px 0;
}

/* 모바일 메뉴 그룹 */
.mobile_menu_group {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile_menu_title {
    margin: 0;
    padding: 0;
}

.mobile_menu_title a {
    display: block;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.mobile_menu_title a:active {
    opacity: 0.9;
}

/* 모바일 서브메뉴 */
.mobile_submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
}

.mobile_submenu li {
    margin: 0;
}

.mobile_submenu a {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile_submenu a:active {
    background: #e7f3ff;
    border-color: #667eea;
    color: #667eea;
}

/* 메뉴 오버레이 */
.mobile_menu_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile_menu_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 메뉴 활성화 시 GNB 슬라이드 */
body.menu_open .mobile_gnb {
    right: 0;
}

body.menu_open .mobile_menu_overlay {
    opacity: 1;
    visibility: visible;
}

/* 스크롤 영역 */
.mobile_gnb::-webkit-scrollbar {
    width: 4px;
}

.mobile_gnb::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.mobile_gnb::-webkit-scrollbar-track {
    background: #f0f0f0;
}
