/* ============== 하단 네비게이션 바 ============== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
    padding: 2px 8px;
    min-width: 50px;
    position: relative;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s ease;
}


/* 활성화된 메뉴 */

.nav-item.active {
    color: #667eea;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    font-weight: 700;
}


/* 메인 아이콘 (가운데) */

.main-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-bottom: 0;
}

.nav-item:nth-child(3) {
    margin-top: -16px;
}

.nav-item:nth-child(3) .nav-label {
    display: none;
}


/* 호버 효과 (데스크톱) */

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover {
        color: #667eea;
    }
    .nav-item:hover .nav-icon {
        transform: scale(1.15);
    }
    .nav-item:hover .main-icon {
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }
}


/* 아이폰 하단 안전 영역 고려 */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}