@charset "UTF-8";

/* 전체 페이지 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f4f5f7;
    color: #333;
    line-height: 1.6;
}

/* 메인 컨텐츠 영역 */
.my-posts-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.my-posts-container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    box-sizing: border-box;
}

/* 페이지 헤더 스타일 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 600;
}

/* '모두 읽기' 버튼 */
.mark-all-read-btn-page {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mark-all-read-btn-page:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
    color: #333;
}

/* 알림 목록 <ul> */
.noti-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 개별 알림 항목 <li> */
.noti-item {
    border-bottom: 1px solid #fff;
    padding: 15px 10px;
}

.noti-item:last-child {
    border-bottom: none;
}

.noti-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

/* 읽지 않은 알림 스타일 */
.noti-item.unread {
    background-color: #eaf6ff;
}

/* 알림 내용 */
.noti-content {
    flex-grow: 1;
    margin-right: 15px;
}

.noti-content .sender-name {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 5px;
}

.noti-content .comment-preview-text {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 기본적으로 한 줄로 표시하고 ... 처리 */
}

/* 알림 메타 정보 */
.noti-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #999;
    font-size: 0.85em;
}

.noti-meta .notification-time {
    margin-bottom: 5px;
}

.noti-meta .new-badge {
    background-color: tomato;
    color: #fff;
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 5px;
    padding: 3px 8px;
}

/* 호버 효과 */
.noti-item a:hover {
    background-color: #f8f8f8;
}

.noti-item.unread a:hover {
    background-color: #dbeeff;
}

/* 알림 없음 메시지 */
.no-noti {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1em;
}

.spinner-grow {
	display: none;
	position: sticky;
	bottom: 10px; /* 화면 하단에서 띄울 거리 */
	transform: translateX(-50%);
	z-index: 9999;
	left: 50%;
}

.spinner-grow.show {
	display: block;
}

.no-more-notifications {
    text-align: center;
    color: #666;
    padding: 10px 0;
}

.no-notifications-message {
	position: fixed;
/* 	top: 10px; */
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	background-color: black;
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	opacity: 0;
	visibility: hidden;
	font-size: 14px;
	z-index: 9999;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.no-notifications-message.show {
	opacity: 1;
	visibility: visible;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .my-posts-container {
        padding: 20px;
    }

    .noti-item a {
        flex-direction: column;
        align-items: flex-start;
    }

    .noti-content {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .noti-meta {
        align-items: flex-start;
    }
}