/* 네비게이션 기본 스타일 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    transition: opacity 0.3s ease;
}

.nav-logo .logo-white {
    display: block;
}

.nav-logo .logo-dark {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover {
    color: #E85D67;
}

/* 스크롤 시 네비게이션 스타일 */
.nav.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .nav-logo .logo-white {
    display: none;
}

.nav.scrolled .nav-logo .logo-dark {
    display: block;
}

.nav.scrolled .nav-menu > li > a {
    color: #333;
}

.nav.scrolled .nav-menu > li > a:hover {
    color: #E85D67;
}

/* 모바일 토글 버튼 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav.scrolled .nav-toggle span {
    background: #333;
}

/* 개별 드롭다운 메뉴 스타일 */
.nav-menu > li {
    position: relative;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.dropdown-menu li {
    list-style: none;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #fff5f0;
    color: #E85D67;
}

/* 드롭다운이 있는 메뉴 아이템에 화살표 표시 */
.has-dropdown > a:after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a:after {
    transform: rotate(180deg);
}

/* 메가메뉴 스타일 */
.dropdown-menu.mega-menu {
    display: flex;
    min-width: 500px;
    padding: 20px;
    gap: 30px;
}

.mega-menu-column {
    flex: 1;
    list-style: none;
    padding: 0;
}

.mega-menu-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #E85D67;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E85D67;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 5px;
}

.mega-menu-list a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.mega-menu-list a:hover {
    background-color: #fff5f0;
    color: #E85D67;
    transform: translateX(5px);
}
