/* 
    [INGUIDE Layout - Header CSS]
    - 상단 네비게이션(GNB) 및 모바일 사이드바 스타일
    - 제작: INGUIDE
*/
.header { 
    position:fixed; top:0; left:0; width:100%; height:var(--header-height); 
    background:rgba(255, 255, 255, 1); z-index:1000; 
    transition: var(--transition); border-bottom:1px solid var(--gray-100); 
}
.header.scrolled { 
    height: var(--header-scrolled-height); 
    background:rgba(255, 255, 255, 1); 
    backdrop-filter:none; -webkit-backdrop-filter:none; 
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-inner {
    max-width: var(--container-width); margin:0 auto; height:100%; 
    display:flex; align-items:center; justify-content:space-between; padding:0 18px; 
}

.logo { flex-shrink:0; display: flex; align-items: center; height: 100%; }
.logo a { display: flex; align-items: center; height: 100%; font-family: 'Syne', sans-serif; font-size:24px; font-weight:800; color:var(--black); text-transform: uppercase; letter-spacing: -1px; }
.logo img { height:40px; display: block; }

.gnb { height: 100%; margin-left: auto; }
.gnb > ul { display:flex; gap:5px; height: 100%; }
.gnb > ul > li { position:relative; height: 100%; display: flex; align-items: center; }
.gnb > ul > li > a { 
    position: relative;
    display:flex; align-items:center; height:100%; padding:0 15px;
    font-size:20px; font-weight:800; color: var(--black);
    transition: all 0.3s ease;
}

.gnb > ul > li:hover > a,
.gnb > ul > li.active > a { 
    color: var(--point-color); 
}

.sub-menu { 
    position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(10px); 
    width:200px; background:#fff; padding:15px; border-radius: var(--round-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); opacity:0; visibility:hidden; transition: var(--transition);
}
.gnb > ul > li:hover .sub-menu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.sub-menu li a { display:block; padding:10px 15px; font-size:15px; color:var(--gray-500); border-radius: var(--round-sm); }
.sub-menu li a:hover { background: var(--gray-50); color: var(--point-color); }

/* Mobile Sidebar */
.sidebar-mobile {
    position: fixed; top: 0; right: -100%; width: 85%; max-width: 500px; height: 100%;
    background: #fff; z-index: 2000; transition: var(--transition);
    padding: 40px; display: flex; flex-direction: column; gap: 40px;
    border-radius: 0;
    box-shadow: -20px 0 50px rgba(0,0,0,0.1);
}
.sidebar-mobile.active { right: 0; }

.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    z-index: 1900; opacity: 0; visibility: hidden; transition: var(--transition);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.m-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.m-logo { font-size: 20px; font-weight: 800; color: var(--black); }
.m-logo img { height: 35px; width: auto; vertical-align: middle; }
.m-logo a { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--black); text-transform: uppercase; letter-spacing: -1px; }
.btn-close-menu { font-size: 24px; color: var(--gray-500); }

.m-gnb ul { display: flex; flex-direction: column; }
.m-gnb > ul > li { border-bottom: 1px solid var(--gray-100); }
.m-gnb > ul > li:last-child { border-bottom: none; }
.m-gnb ul li { position: relative; }
.m-gnb ul li a { display: block; padding: 15px 0; font-size: 18px; font-weight: 700; color: var(--black); transition: color 0.3s ease; }
.m-gnb ul li.has-sub > a { padding-right: 40px; }

.m-gnb ul li.active > a,
.m-gnb ul li a:active { color: var(--point-color); }

.btn-toggle-sub {
    position: absolute; right: 0; top: 0; width: 50px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); transition: transform 0.3s ease;
}
.m-gnb li.open > .btn-toggle-sub { transform: rotate(180deg); color: var(--point-color); }

.m-sub { 
    display: none !important; 
    margin-bottom: 10px; padding-left: 15px; 
    border-left: 1px solid var(--gray-100); 
}
.m-gnb li.open > .m-sub { display: block !important; }
.m-sub li a { 
    padding: 10px 0 !important;
    font-size: 15px !important; 
    font-weight: 500 !important; 
    color: var(--gray-500) !important; 
}
.m-sub li.active a { color: var(--point-color) !important; }

.m-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--gray-100); color: var(--gray-500); font-weight: 600; }
