@charset "UTF-8";

/* 전체 마이피드 컨테이너 */
.my-feed-container {
    width: 100%;
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}
/* 프로필 정보 영역 */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}
.profile-info-wrapper { 
	flex-grow: 1; 
}
.profile-nickname { 
	display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}
.profile-bio { 
	color: #888; margin-bottom: 20px; 
}
.profile-stats ul { 
	display: flex; 
	list-style: none; 
	padding: 0; 
	margin: 0 0 20px; 
	gap: 40px; 
}
.profile-stats li { 
	text-align: center; 
}
.profile-stats .stat-count { 
	display: block; 
	font-size: 20px; 
	font-weight: bold; 
}
.profile-stats .stat-label { 
	font-size: 14px; 
	color: #555; 
}
.btn-profile-edit { 
	display: inline-block; 
	padding: 10px 20px; 
	border: 1px solid #ccc; 
	background-color: #fff; 
	color: #333; 
	text-decoration: none; 
	border-radius: 5px; 
	font-weight: bold; 
	text-align: center; 
}
.btn-profile-edit:hover { 
	background-color: #f5f5f5; 
}

/* 콘텐츠 탭 영역 */
.content-tabs { 
	border-bottom: 1px solid #ddd; 
	margin-bottom: 30px; 
}
.content-tabs ul { 
	display: flex; 
	list-style: none; 
	padding: 0; 
	margin: 0; 
}
.content-tabs li a { 
	display: inline-block; 
	padding: 15px 20px; 
	color: #888; 
	text-decoration: none; 
	font-weight: bold; 
	position: relative; 
	bottom: -1px; 
}
.content-tabs li.active a { 
	color: #000; 
	border-bottom: 2px solid #000; 
}

/* =================================================== */
/* [핵심 수정] 피드 정보 바 (총 개수, 정렬) 스타일     */
/* - feedList.css와 동일한 스타일을 적용하여 디자인 통일  */
/* =================================================== */
.feed-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.content-count {
    font-size: 14px;
    color: #555;
}
.sort-dropdown {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 팔로우 버튼과 '...' 버튼을 함께 담고 있는 컨테이너 */
.other-user-actions {
    /* 이 컨테이너는 이제 '...' 버튼의 위치에 영향을 주지 않습니다. */
}
.options-menu-btn {
    position: relative;
    padding-right: 50px;
}
.follow-action-area {
    display: inline-block;
    vertical-align: middle;
}

/* 본인 게시물 그리드 영역 */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
}
.feed-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 4; 
}
.feed-item a { display: block; width: 100%; height: 100%; }
.feed-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.feed-item:hover img {
    transform: scale(1.05);
}
.feed-item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    padding: 20px 10px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
}
.feed-item:hover .item-overlay {
    opacity: 1;
}

/* (이하 기존 코드 유지) */
/* =================================================== */
/*             [신규 추가] 팔로우 기능 관련 CSS           */
/* =================================================== */
.follow-link, .following-link { font-weight: 550; margin-left: 8px; text-decoration: none; cursor: pointer; color: deepskyblue; }
.follow-link { color: deepskyblue; }
.following-link { color: deepskyblue; }
.following-link:hover { color: deepskyblue; text-decoration: none; }
.follow-link:hover { color: deepskyblue; text-decoration: none; }
.unfollow-modal-content { border-radius: 12px; }
.unfollow-modal-content .modal-body { text-align: center; padding: 32px 16px 16px; }
.unfollow-profile img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; display: inline-block; }
.unfollow-modal-content .modal-footer { border-top: none; display: flex; flex-direction: column; padding: 0; }
.unfollow-modal-content .modal-footer button { width: 100%; border: none; border-top: 1px solid #dbdbdb; padding: 14px 8px; margin: 0; background-color: transparent; font-weight: normal; font-size: 14px; }
.unfollow-modal-content .modal-footer .btn-danger { color: #ed4956; font-weight: 700; }
.unfollow-modal-content .modal-footer .btn-secondary { color: #262626; }

/* =================================================== */
/*        [신규 추가] 게시물 옵션 모달 관련 CSS           */
/* =================================================== */
.options-menu-btn { background: none; border: none; padding: 8px; cursor: pointer; }
.options-modal-content { background-color: #ffffff; border-radius: 12px; border: none; }
.profile-details { width: 100%; position: relative; }
.profile-nickname { font-size: 24px; font-weight: bold; margin: 0; margin-right: 10px; }
.follow-action-area { display: flex; align-items: center; position: absolute; }
.btn-profile-edit { display: inline-block; padding: 8px 15px; border: 1px solid #ccc; background-color: #fff; color: #333; text-decoration: none; border-radius: 5px; font-weight: bold; text-align: center; }
.profile-bio { color: #888; margin-top: 5px; margin-bottom: 20px; }
.other-user-actions .options-menu-btn { position: absolute; top: 5px; right: 0; }
#feed-options-list { list-style: none; padding: 0; margin: 0; width: 100%; }
#feed-options-list li { padding: 14px 8px; font-size: 14px; text-align: center; border-top: 1px solid #dbdbdb; cursor: pointer; background-color: transparent; transition: background-color 0.2s; }
#feed-options-list li:first-child { border-top: none; }
#feed-options-list li:hover { background-color: #f9f9f9; }
#feed-options-list li.text-danger b { color: #ed4956; font-weight: 700; }
.profile-actions { position: relative; padding-right: 40px; display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; }
.other-user-actions .options-menu-btn { position: absolute; top: 5px; right: 0; }
.profile-nickname { display: inline-block; vertical-align: middle; margin-right: 15px; }
.follow-action-area { display: inline-block; vertical-align: middle; }
.profile-actions { position: relative !important; padding-right: 50px !important; }
.other-user-actions .options-menu-btn { position: absolute !important; top: 5px !important; right: 0 !important; display: block !important; }
.profile-nickname { display: inline-block !important; vertical-align: middle !important; margin-right: 15px !important; }
.follow-action-area { display: inline-block !important; vertical-align: middle !important; position: static !important; left: auto !important; top: auto !important; }
.no-feeds-container { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; padding: 5rem 0; color: #888; font-size: 1.1rem; }