/**
 * 풀스크린 메가메뉴 (JMcoffee 스타일)
 * - 4컬럼 동일 너비, 화면 높이 기준 세로 중앙
 * - 제목 고정 Y축, 리스트 동일 시작 위치
 */

.global-nav-backdrop {
    display: none;
}
.global-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 상단 오른쪽 닫기 X 버튼 */
.global-nav-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s, opacity 0.25s;
}
.global-nav-close:hover {
    color: var(--color-main);
    opacity: 0.9;
}

/* 뷰포트 기준 세로·가로 중앙 */
.global-nav-inner {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* 4컬럼 행: 컬럼들을 위쪽 정렬 → 제목이 모두 같은 가로줄에 위치 */
/* min-width: 0 → flex 자식이 부모(.global-nav-inner) 패딩을 침범하지 않고 줄어들 수 있게 함 */
.global-nav-inner__content {
    display: flex;
    align-items: flex-start;
    gap: 3rem 8rem;
    width: 100%;
    min-width: 0;
}

/* 컬럼: 왼쪽 정렬, 위에서부터 배치 */
.global-nav-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* 제목: 고정 슬롯 → 모든 컬럼 동일 Y축 */
.global-nav-column__title {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 32px;
    white-space: nowrap;
    color: #fff;
}

.global-nav-column__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s, opacity 0.25s;
}

.global-nav-column__title a:hover {
    color: var(--color-main);
    opacity: 0.95;
}

/* 리스트: gap으로 항목 간격 */
.global-nav-column__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.global-nav-column__list li {
    font-size: 18px;
    line-height: 1.6;
}

.global-nav-column__list a {
    font-size: clamp(17px, 1.2vw, 19px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.25s, opacity 0.25s;
}

.global-nav-column__list a:hover {
    color: var(--color-main);
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* 오버레이 내 유틸리티(테마/AI/로그인) - 모바일에서만 표시 */
.global-nav-actions {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}
.global-nav-actions__link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.25s, opacity 0.25s;
}
.global-nav-actions__link:hover {
    color: var(--color-main);
    opacity: 1;
}
