/* =========================================
   [서브페이지] 알림내역 (notice_detail)
========================================= */
#notice_detail {
    padding: 30px 20px 60px;
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg_light);
    min-height: 100vh;
    box-sizing: border-box;
}

/* 공통 타이틀 */
.page-title {
    font-size: 24px; 
    font-weight: 700; 
    color: var(--text_dark); 
    text-align: center; 
    margin-bottom: 24px; 
    letter-spacing: -0.5px;
}

.notice-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 모던 앱 스타일 알림 카드 */
.notice-item {
    background: #ffffff;
    border: 1px solid var(--border_color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}


.notice-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(13, 65, 105, 0.06); 
    background-image: url('../img/notifications.png'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px; 
    border-radius: 50%;
    flex-shrink: 0;
}
.notice-content {
    flex-grow: 1;
}

.notice-msg {
    font-size: 15.5px;
    color: var(--text_dark);
    line-height: 1.5;
    margin: 0 0 6px 0;
    word-break: keep-all;
    font-weight: 600;
}

.notice-date {
    font-size: 13px;
    color: var(--text_gray);
    margin: 0;
    font-weight: 400;
}



/* =========================================
   [서브페이지] 마이페이지 
========================================= */
#mypage { 
    padding: 20px 20px 100px 20px; 
    box-sizing: border-box; 
    background: var(--bg_light, #f4f6f8);
    min-height: 100vh;
}

#mypage .profile { 
    background: #ffffff; 
    padding: 24px 20px; 
    box-sizing: border-box; 
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid var(--border_color, #eaeaea);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#mypage .profile-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
#mypage .profile {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
}

#mypage .profile .edit-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

#mypage .profile h2 {  
    font-size: 17px; 
    font-weight: 700; 
    color: var(--text_dark, #111111); 
    margin: 0; 
    letter-spacing: -0.5px;
}
#mypage .profile .edit-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f3f5;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap; flex-shrink: 0; /* 닉네임이 길어도 「정보변/경」으로 꺾이지 않게 */
}

#mypage .profile .edit-link:hover {
    background: #e2e6ea;
    color: #333333;
}
#mypage .profile h3 { margin: 0; }
#mypage .profile h2 { min-width: 0; overflow-wrap: anywhere; } /* 긴 닉네임은 이름 쪽에서 줄바꿈 */

#mypage .profile input[type="button"] { 
    display: inline-block; 
    padding: 6px 12px;
    background: #f1f3f5; 
    border: none; 
    border-radius: 8px;
    font-size: 12.5px; 
    font-weight: 600; 
    color: #666666; 
    cursor: pointer;
    transition: background 0.2s;
}
#mypage .profile input[type="button"]:hover {
    background: #e2e6ea;
    color: #333333;
}
#mypage .wrap { 
    width: 100%; 
    max-width: 500px;
    margin: 0 auto; 
    background: var(--ss-card);
    border-radius: var(--ss-radius-card);
    padding: 8px 20px;
    box-shadow: var(--ss-shadow-card);
    border: 1px solid var(--ss-line);
}

#mypage .wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#mypage .wrap li { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0; 
    border-bottom: 1px solid #f1f3f5; 
    box-sizing: border-box; 
    min-height: 56px;
    height: auto !important; 
}

#mypage .wrap li:last-child {
    border-bottom: none;
}

#mypage .wrap li h2 { 
    font-size: 15px; 
    font-weight: 600; 
    color: #555555; 
    margin: 0;
    white-space: nowrap;
}

#mypage .wrap li h3 { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text_dark, #111111); 
    margin: 0;
    text-align: right !important; 
    word-break: keep-all;
    line-height: 1.4;
}
#mypage .wrap li:has(br) {
    align-items: flex-start;
    padding: 20px 0;
}
#mypage .wrap li:has(br) h3 {
    text-align: right !important; 
    display: inline-block;
    max-width: 70%; 
    font-weight: 500;
    color: var(--text_dark, #111111);
    line-height: 1.5;
}
#mypage .wrap li h3 span { 
    font-weight: 800; 
    color: var(--point_orange) !important; 
    font-size: 16px;
}
#mypage .wrap li:has(span) h3 {
    color: var(--point_orange) !important;
    font-weight: 800;
}
#mypage .wrap li:has(span) h3 span {
    font-size: 17px;
}
#mypage .wrap li:nth-last-child(2) {
    border-bottom: none !important;
}
/* 회원탈퇴 버튼 스타일링 */
#mypage .wrap li[onclick="leave()"] {
    margin-top: 4px;
    padding-top: 18px;
    padding-bottom: 6px;
    border-top: 2px dashed #eaeaea;
    cursor: pointer;
    display: flex;
    justify-content: flex-start; 
}
#mypage .wrap li[onclick="leave()"] h2 {
    color: #e03131;
    font-size: 14px;
    font-weight: 600;
}

