/* ==========================================================================
   MYPAGE GLOBAL LAYOUT
   ========================================================================== */
.mypage-wrapper {
    width: 100%;
    max-width: 1380px;
    margin: 40px auto 100px;
    box-sizing: border-box;
}

.mypage-breadcrumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.my-page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #fff;
}

.home-my-path {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    color: #A0AEC0;
    margin-top: 8px;
}

.sub-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.mypage-right-contents {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
    min-width: 0; 
}

/* ==========================================================================
   MYPAGE SIDEBAR & PROFILE
   ========================================================================== */
.mypage-left-menu {
    display: flex;
    width: 196px;
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch; 
    gap: 21px;
    flex-shrink: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.25) inset;
    box-sizing: border-box;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-info-row {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 12px; 
    width: 100%;
    margin-bottom: 24px;
}

.avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px; 
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #333; 
    display: block; 
}

.edit-icon-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2; 
}

.edit-icon-wrapper img { width: 12px; height: 12px; }

.username-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.username-text {
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.bell-icon { width: 20px; height: 20px; cursor: pointer; }

.profile-action-btns {
    display: flex;
    width: 100%;
    gap: 8px;
}

.btn-profile-action {
    display: flex;
    height: 36px;
    padding: 0 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0; 
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #242424;
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
}

.btn-profile-action:hover {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-group { display: flex; flex-direction: column; gap: 16px; }
.menu-group-single { display: flex; align-items: center; }

.menu-group-title {
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    cursor: default;
}

.menu-list { display: flex; flex-direction: column; gap: 12px; }

.menu-item {
    color: #B6B6B6; 
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-item:hover { color: #FFF; }

/* ==========================================================================
   MOBILE RESPONSIVE (<= 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .sub-container { flex-direction: column; gap: 0; }
    
    .mypage-left-menu {
        width: 100% !important;
        padding: 24px 16px !important;
        margin-bottom: 24px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 24px;
        box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.25) inset;
        box-sizing: border-box;
    }
    
    .profile-section { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; width: 100%; }
    .profile-info-row { flex-direction: row; gap: 16px; margin-bottom: 20px; }
    .profile-action-btns { width: 100%; display: flex; gap: 8px; }
    
    .btn-profile-action {
        flex: 1; 
        height: 48px; 
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: #242424;
    }
    
    .menu-divider, .menu-group, .menu-group-single { display: none !important; }
    .my-page-title { font-size: 24px; }
}