/**
 * 하단 고정 네비게이션 바
 * woodspoon3 프로젝트 공통 네비게이션
 */

/* 하단 네비게이션 컨테이너 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white, #FFFFFF);
    border-top: 1px solid var(--border-color, #E5E5E5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 0 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    max-width: var(--max-width, 480px);
    margin: 0 auto;
}

/* 네비게이션 아이템 */
.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    text-decoration: none;
    color: var(--text-muted, #999999);
    cursor: pointer;
    /* 탭 하이라이트 제거 (Android WebView) */
    -webkit-tap-highlight-color: transparent;
    /* 트랜지션 없음 - 즉시 반영 */
    transition: none;
}

/* 아이콘 컨테이너 */
.bottom-nav__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG 아이콘 기본 스타일 */
.bottom-nav__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

/* 텍스트 레이블 */
.bottom-nav__label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.3px;
}

/* 활성화 상태 (현재 페이지) */
.bottom-nav__item.active {
    color: var(--primary-color, #8B4513);
    font-weight: 600;
}

/* hover/focus/active 상태 완전 무효화 - 페이지 활성화 상태만 사용 */
.bottom-nav .bottom-nav__item:hover,
.bottom-nav .bottom-nav__item:focus,
.bottom-nav .bottom-nav__item:active {
    color: inherit;
    background: transparent;
    opacity: 1;
    transform: none;
    outline: none;
}

/* active 클래스가 있는 아이템은 활성 색상 유지 */
.bottom-nav .bottom-nav__item.active:hover,
.bottom-nav .bottom-nav__item.active:focus,
.bottom-nav .bottom-nav__item.active:active {
    color: var(--primary-color, #8B4513);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .bottom-nav {
        left: 0;
        right: 0;
        max-width: 100%;
    }
}

/* 페이지 콘텐츠 하단 여백 (네비게이션 바 높이 확보) */
body.has-bottom-nav {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    /* 하단 회색 배경 제거 - 네비 바 및 safe area와 통일된 흰색 배경 */
    background-color: var(--bg-white, #FFFFFF);
}
