/* TAMS Mobile Sidebar - Figma Dark Minimal Design */

/* 사이드바 컨테이너 */
.mobile-sidebar {
    background-color: var(--color-white);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(375px);
    transition: transform 0.3s ease;
    width: 375px;
    z-index: 2000;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

/* 사이드바 헤더 */
.sidebar-header {
    align-items: center;
    display: flex;
    height: 56px;
    justify-content: flex-end;
    padding: 0;
    padding-right: 16px;
    position: relative;
}

/* 닫기 버튼 */
.sidebar-close-button {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.sidebar-close-button svg {
    height: 28px;
    width: 28px;
}

.sidebar-close-button svg path {
    stroke: #151515;
    stroke-linecap: round;
    stroke-width: 2;
}

/* 사이드바 컨텐츠 */
.sidebar-content {
    padding: 0;
}

/* 메뉴 컨테이너 */
.sidebar-menu {
    padding: 20px;
    padding-top: 0;
}

/* 메뉴 아이템 */
.menu-item {
    margin-bottom: 0;
}

/* 메인 메뉴 버튼 */
.menu-main {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    /*height: 48px;*/
    justify-content: flex-start;
    padding: 8px 20px;
    text-align: left;
    width: 100%;
}

.menu-main .menu-link {
    color: #151515;
    display: block;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    text-decoration: none;
}

/* 서브메뉴 컨테이너 */
.sidebar-content .mobile-submenu-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-left: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.sidebar-content .mobile-submenu-container.expanded {
    display: block;
    max-height: 700px; /* 충분히 큰 값으로 설정 */
    opacity: 1;
}

/* 서브메뉴 아이템 */
.sidebar-content .mobile-submenu-item {
    margin-bottom: 0;
}

.sidebar-content .mobile-submenu-item a {
    background-color: transparent;
    color: #aaa;
    display: block;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: auto;
    line-height: 24px;
    margin-left: 0;
    min-height: 44px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sidebar-footer {
    padding: 0 0 0 40px;
}

/* 언어 토글 (하단 고정) */
.language-toggle {
    align-items: center;
    background-color: #e8e8e8;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    height: 36px;
    width: 60px;
}

.language-toggle .toggle-indicator {
    align-items: center;
    background-color: #101010;
    border-radius: 16px;
    display: flex;
    height: 32px;
    justify-content: center;
    margin-left: 26px;
    transition: margin-left 0.3s ease;
    width: 32px;
}

.language-toggle.ko .toggle-indicator {
    margin-left: 2px;
}

.language-toggle .toggle-text {
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

/* 사이드바 오버레이 */
.sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    width: 100%;
    z-index: 1999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 반응형 */
@media (max-width: 375px) {
    .mobile-sidebar {
        transform: translateX(100vw);
        width: 100vw;
    }
} 