/* Bottom Navigation Styles */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.nav-item.active {
    color: #8B5CF6;
}

.nav-item:hover {
    color: #8B5CF6;
}

/* Navigation Icon Images */
.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.8;  /* 0.6에서 0.8로 증가 */
    transition: opacity 0.2s;
    filter: grayscale(100%);  /* 비활성 상태에서 회색조 */
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    opacity: 1;
    filter: grayscale(0%);  /* 활성 상태에서 원래 색상 */
}

/* Badge Styles */
.chat-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EC4899;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-new-nav {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 2px 6px;
    background: #EF4444;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}