@charset "utf-8";

/* -----------------------------------------------------------
   GLOBAL SETTINGS & VARIABLES
----------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --zzan-neon: #E6FF00; /* 사이트 포인트 컬러 (관리자 설정에서 변경 가능) */
    --header-height: 80px;
    --content-width: 1200px;

    /* [Dark Theme] 전역 컬러 변수 */
    --zzan-bg: #131314;
    --zzan-text: #ffffff;
    --zzan-header-bg: #0a0a0a;
    --zzan-footer-bg: #0a0a0a;
    --zzan-border: rgba(255, 255, 255, 0.05);
    --zzan-menu-hover-bg: rgba(255, 255, 255, 0.05);
    --zzan-gray-text: #888888;
    --zzan-btn-border: #333333;
    --zzan-select-bg: #1a1a1b;
}

/* [Light Theme] 전역 컬러 변수 */
html[data-theme="light"] {
    --zzan-bg: #ffffff;
    --zzan-text: #1a1a1b;
    --zzan-header-bg: #ffffff;
    --zzan-footer-bg: #f9f9f9;
    --zzan-border: rgba(0, 0, 0, 0.1);
    --zzan-menu-hover-bg: rgba(0, 0, 0, 0.05);
    --zzan-gray-text: #666666;
    --zzan-btn-border: #cccccc;
    --zzan-select-bg: #ffffff;
}

body { font-family: 'Pretendard', sans-serif; background-color: var(--zzan-bg); color: var(--zzan-text); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }
ul, li { list-style: none !important; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

body, html {
    font-family: 'Montserrat', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* -----------------------------------------------------------
   LAYOUT HEADER: 상단 헤더 (중앙 로고, 좌측 햄버거 메뉴)
----------------------------------------------------------- */
.zzan-header { 
    position: fixed; top: 0; left: 0; width: 100%; 
    height: var(--header-height); 
    background-color: var(--zzan-header-bg); 
    z-index: 1000; 
    border-bottom: 1px solid var(--zzan-border); 
}

.header-inner { 
    max-width: var(--content-width); 
    height: 100%; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header-left, .header-right { flex: 1; display: flex; align-items: center; }
.header-right { justify-content: flex-end; gap: 20px; }

.logo { flex: 0 0 auto; text-align: center; }
.logo a { font-size: 24px; font-weight: 800; color: var(--zzan-text); display: block; }
.logo a img { height: 40px !important; width: auto !important; display: block; object-fit: contain; }
.logo-txt { font-family: 'Montserrat'; font-weight: 900; font-size: 24px; color: var(--zzan-text); }

/* Hamburger Menu Button: 상단 사이드 메뉴 토글 버튼 */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--zzan-text);
    transition: 0.3s;
}
.menu-btn:hover span { background-color: var(--zzan-neon); }

/* Notification Icon: 알림센터 아이콘 및 카운트 배지 */
.zzan-notify-wrapper { position: relative; }
.notify-btn { color: var(--zzan-text); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.notify-btn { background: none; border: none; cursor: pointer; padding: 0; position: relative; }
.notify-btn:hover { color: var(--zzan-neon); }
.notify-btn .count {
    position: absolute; top: -5px; right: -5px;
    background: var(--zzan-neon); color: #000;
    font-size: 10px; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid var(--zzan-header-bg);
    box-shadow: 0 0 10px rgba(230, 255, 0, 0.5);
}

/* 알림 드롭다운 레이어 */
.zzan-notify-layer {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--zzan-header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--zzan-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    margin-top: 15px;
    animation: fadeInUp 0.3s ease;
    overflow: hidden;
    text-align: left;
}
.zzan-notify-layer.active { display: block; }
.zzan-notify-layer .layer-header {
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 800;
    color: var(--zzan-text);
    border-bottom: 1px solid var(--zzan-border);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
.zzan-notify-layer .notify-list { max-height: 400px; overflow-y: auto; }
.zzan-notify-layer .notify-list li { border-bottom: 1px solid var(--zzan-border); }
.zzan-notify-layer .notify-list li:last-child { border-bottom: none; }
.zzan-notify-layer .notify-list li a {
    display: block;
    padding: 15px 20px;
    transition: all 0.2s;
}
.zzan-notify-layer .notify-list li a:hover { background: var(--zzan-menu-hover-bg); }
.zzan-notify-layer .notify-list li .text {
    display: block;
    font-size: 13px;
    color: var(--zzan-text);
    line-height: 1.4;
    margin-bottom: 5px;
}
.zzan-notify-layer .notify-list li .date {
    display: block;
    font-size: 11px;
    color: var(--zzan-gray-text);
}
.zzan-notify-layer .no-notify {
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--zzan-gray-text);
}

.zzan-notify-layer .layer-footer {
    display: flex;
    border-top: 1px solid var(--zzan-border);
}

.zzan-notify-layer .view-all,
.zzan-notify-layer .read-all {
    flex: 1;
    display: block;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.zzan-notify-layer .view-all {
    color: var(--zzan-neon);
    background: rgba(230, 255, 0, 0.05);
}

.zzan-notify-layer .read-all {
    color: var(--zzan-gray-text);
    border-right: 1px solid var(--zzan-border);
}

.zzan-notify-layer .view-all:hover { background: var(--zzan-neon); color: #000; }
.zzan-notify-layer .read-all:hover { background: var(--zzan-menu-hover-bg); color: var(--zzan-text); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
    .zzan-notify-layer {
        width: 260px;
        position: fixed;
        top: var(--header-height);
        right: 20px;
        margin-top: 10px;
    }
}

.pc-only { display: flex !important; }
.mobile-only { display: none !important; }

@media screen and (max-width: 768px) {
    .pc-only { display: none !important; }
    .mobile-only { display: flex !important; }
}

/* -----------------------------------------------------------
   GLOBAL NAVIGATION LAYER: 전체 메뉴 (PC/모바일 공통 구조)
----------------------------------------------------------- */
.site-menu-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    pointer-events: none; /* 평소 클릭 방지 */
    display: flex;
    flex-direction: column;
}

.menu-layer-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.menu-layer-inner {
    position: relative;
    background: var(--zzan-header-bg); /* 배경 불투명 */
    width: 100%;
    max-height: 0; /* 초기 숨김 (PC 레이어 다운 효과용) */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
    border-bottom: 1px solid var(--zzan-border);
    display: flex;
    flex-direction: column;
}

/* Layer Activation: 메뉴 활성화 상태 제어 */
.site-menu-layer.active { pointer-events: auto; }
.site-menu-layer.active .menu-layer-bg { opacity: 1; }

/* [PC Desktop] 상단 드롭다운 레이어형 메뉴 스타일 */
@media screen and (min-width: 769px) {
    .site-menu-layer.active .menu-layer-inner {
        max-height: 600px; /* 충분한 높이 */
        padding-bottom: 40px;
    }
    
    .menu-header { display: none; } /* PC에선 닫기 버튼이 굳이 필요없음 (배경 클릭으로 닫거나 토글) - 기획상 햄버거 토글이므로 */
    
    /* PC Full GNB Grid Layout */
    .full-gnb {
        max-width: var(--content-width);
        margin: 0 auto;
        padding: 40px 20px;
        width: 100%;
    }
    .root-list {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
    }
    .root-item {
        flex: 1;
        min-width: 200px;
    }
    .root-link {
        display: block;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 18px;
        font-weight: 800;
        color: var(--zzan-text);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--zzan-neon);
        text-transform: uppercase;
    }
    .sub-list li {
        margin-bottom: 12px;
    }
    .sub-list li a {
        font-size: 14px;
        color: var(--zzan-gray-text);
        font-weight: 500;
        transition: 0.2s;
    }
    .sub-list li a:hover {
        color: var(--zzan-neon);
        padding-left: 5px;
    }
}

/* -----------------------------------------------------------
   [Mobile/Tablet] 우측 슬라이딩 사이드 메뉴 스타일
----------------------------------------------------------- */
@media screen and (max-width: 768px) {
    /* Mobile Header Layout */
    .header-inner { position: relative; }
    .header-left { flex: 0 0 auto; }
    .logo { text-align: left; }
    .logo a img { height: 32px !important; }
    .header-right { flex: 1; justify-content: flex-end; }
    
    /* Mobile Slide Menu Style */
    .mobile-layer .menu-layer-bg { background: rgba(0, 0, 0, 0.7); }
    .mobile-layer .menu-layer-inner {
        position: absolute;
        top: 0; right: 0; /* Right Slide */
        width: 280px;
        height: 100%;
        max-height: none;
        transform: translateX(100%); /* 오른쪽으로 숨김 */
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        background: var(--zzan-bg);
        border-left: 1px solid var(--zzan-border);
        border-bottom: none;
    }
    
    .mobile-layer.active .menu-layer-inner { transform: translateX(0); }
    
    /* Mobile Menu Header */
    .menu-header {
        height: var(--header-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid var(--zzan-border);
    }
    .menu-title { font-family: 'Montserrat'; font-size: 18px; font-weight: 800; color: var(--zzan-neon); }
    
    .close-btn {
        width: 24px; height: 24px;
        background: none; border: none;
        position: relative; cursor: pointer;
    }
    .close-btn span {
        position: absolute; top: 50%; left: 0;
        width: 100%; height: 2px;
        background: var(--zzan-text);
    }
    .close-btn span:nth-child(1) { transform: rotate(45deg); }
    .close-btn span:nth-child(2) { transform: rotate(-45deg); }
    
    /* Mobile Menu List */
    .mobile-gnb {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }
    .mobile-gnb .root-list { display: block; }
    .mobile-gnb .root-item { margin-bottom: 25px; }
    .mobile-gnb .root-link {
        font-size: 18px; font-weight: 700;
        display: block; margin-bottom: 10px;
        color: var(--zzan-text);
    }
    .mobile-gnb .sub-list { padding-left: 10px; border-left: 1px solid var(--zzan-border); }
    .mobile-gnb .sub-list li a {
        font-size: 14px; color: var(--zzan-gray-text);
        padding: 8px 0; display: block;
    }
    .mobile-gnb .sub-list li a:hover { color: var(--zzan-neon); }
}

/* -----------------------------------------------------------
   LAYOUT FOOTER: 하단 영역 디자인
----------------------------------------------------------- */
.zzan-footer { padding: 60px 20px; text-align: center; background: var(--zzan-footer-bg); border-top: 1px solid var(--zzan-border); color: var(--zzan-gray-text); }
.footer-logo img { height: 30px !important; width: auto !important; }
.footer-info-left { text-align: left !important; align-items: flex-start; display: flex; flex-direction: column; }
.footer-info-left p { margin: 0; text-indent: 0; }
