/* 밥FULL - 사이드 네비게이션 (글래스모피즘) */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    visibility: hidden;
}

.nav-overlay.open {
    pointer-events: auto;
    visibility: visible;
}

/* 배경 블러 + 어둡게 */
.nav-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.open .nav-overlay-bg {
    opacity: 1;
}

/* 메뉴 패널 */
.nav-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 82%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    overflow-y: auto;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.12);
}

.nav-overlay.open .nav-menu {
    transform: translateX(0);
}

/* 메뉴 헤더 */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--gray-border);
}

.nav-brand-img {
    height: 32px;
    width: auto;
}

/* 닫기 버튼 */
.nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-sub);
    transition: all var(--transition);
}

.nav-close-btn:active {
    background-color: var(--gray-light);
    transform: scale(0.95);
}

/* 메뉴 리스트 */
.nav-list {
    padding: 12px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
    transition: all var(--transition);
    margin-bottom: 2px;
}

.nav-item:active {
    background-color: var(--gray-light);
    transform: scale(0.98);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(244, 57, 44, 0.06);
    font-weight: 600;
}

.nav-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gray-light);
}

.nav-item.active .nav-icon {
    background: rgba(244, 57, 44, 0.1);
}

.nav-item-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nav-item-disabled:active {
    background-color: transparent;
    transform: none;
}

.nav-label {
    flex: 1;
}

/* 메뉴 푸터 */
.nav-footer {
    padding: 16px 20px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-border);
}

.nav-footer-text {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
}

.nav-footer-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 500;
    margin-top: 8px;
}

/* PC 마우스 호버 이펙트 (터치 디바이스 제외) */
@media (hover: hover) and (pointer: fine) {
    .nav-item {
        transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                    background-color 0.2s ease,
                    color 0.2s ease;
    }

    .nav-item:hover {
        background-color: rgba(244, 57, 44, 0.06);
        color: var(--primary);
        transform: translateX(4px);
    }

    .nav-icon {
        transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                    background 0.2s ease;
    }

    .nav-item:hover .nav-icon {
        background: rgba(244, 57, 44, 0.12);
        transform: scale(1.08);
    }

    .nav-item.active:hover {
        background: rgba(244, 57, 44, 0.1);
    }

    .nav-item-disabled:hover {
        background-color: transparent;
        color: var(--gray-dark);
        transform: none;
    }

    .nav-item-disabled:hover .nav-icon {
        background: var(--gray-light);
        transform: none;
    }

    .nav-close-btn {
        transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                    background-color 0.2s ease,
                    color 0.2s ease;
    }

    .nav-close-btn:hover {
        background-color: var(--gray-light);
        color: var(--primary);
        transform: rotate(90deg);
    }
}
