/* 네비게이션 스타일 */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #002147 !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem 0;
}

/* 로고 컨테이너 */
.brand-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c8a882, #b8985e);
    border: 2px solid #c8a882;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

/* 로고 내부 프레임 */
.brand-logo::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.brand-logo-text {
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    z-index: 1;
}

/* 브랜드 텍스트 */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.4rem;
    color: #002147;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 0.7rem;
    color: #c8a882;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* 네비게이션 메뉴 */
.navbar-nav .nav-link {
    color: #002147 !important;
    font-weight: 500;
    padding: 0.7rem 1.2rem !important;
    margin: 0 0.3rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white !important;
    transform: translateY(-2px);
}

/*.navbar-nav .nav-link::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    width: 0;*/
/*    height: 2px;*/
/*    bottom: 5px;*/
/*    left: 50%;*/
/*    background: #0066cc;*/
/*    transition: all 0.3s ease;*/
/*    transform: translateX(-50%);*/
/*}*/

/*.navbar-nav .nav-link:hover::after {*/
/*    width: 80%;*/
/*}*/

/*.navbar-nav .nav-link.active::after {*/
/*    width: 0;*/
/*}*/

/* 햄버거 메뉴 커스터마이징 */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 드롭다운 메뉴 (제품 메뉴용) */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    transform: translateX(5px);
}

/* 모바일 반응형 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center;
    }

    .brand-text {
        display: none;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }
}

/* 언어 선택 메뉴 스타일 */
.language-selector {
    min-width: 120px;
    border-left: 1px solid rgba(200, 168, 130, 0.3);
    margin-left: 0.5rem;
    padding-left: 1rem !important;
}

.language-menu {
    min-width: 150px;
    border-top: 3px solid #c8a882;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.language-item:hover {
    background: linear-gradient(135deg, #c8a882, #b8985e);
    color: white;
    transform: none; /* 언어 메뉴는 transform 없음 */
}

.language-item.active {
    background: rgba(200, 168, 130, 0.1);
    color: #c8a882;
    font-weight: 600;
}

.language-item.active:hover {
    background: linear-gradient(135deg, #c8a882, #b8985e);
    color: white;
}

/* 모바일에서 언어 메뉴 */
@media (max-width: 991.98px) {
    .language-selector {
        border-left: none;
        border-top: 1px solid rgba(200, 168, 130, 0.3);
        margin-left: 0;
        margin-top: 0.5rem;
        padding-left: 1.5rem !important;
        padding-top: 1.5rem !important;
    }

    .language-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(200, 168, 130, 0.2);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        background: transparent;
    }

    .language-item {
        background: rgba(200, 168, 130, 0.05);
        margin-bottom: 0.3rem;
        border-radius: 8px;
    }
}

/* 현재 선택된 언어 표시 개선 */
.navbar-nav .language-selector .flag-icon {
    margin-right: 0.5rem;
    margin-left: 0.3rem;
}

/* 체크 아이콘 */
.language-item .fa-check {
    color: #c8a882;
    font-size: 0.9rem;
}

.language-item:hover .fa-check {
    color: white;
}

/* 언어 드롭다운 화살표 스타일링 */
.language-selector::after {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* 전역 스타일: 현재 언어에 따른 폰트 최적화 */
html[lang="ko"] {
    font-family: 'Pretendard-Regular', 'Malgun Gothic', sans-serif;
}

html[lang="en"] {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

html[lang="zh"] {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}