﻿/* =========================================================
   /css/member_mypage_ui.css
   회원 마이페이지 / 회원정보수정 / 회원탈퇴
   ========================================================= */

.member-mypage-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px;
}

.member-mypage-head {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 2px solid #202632;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.member-mypage-kicker {
    margin-bottom: 8px;
    color: #1f5fae;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.member-mypage-head h1 {
    margin: 0;
    color: #101827;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 760;
    letter-spacing: -0.075em;
}

.member-mypage-head p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}

.member-mypage-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.mypage-btn,
.member-btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    border: 1px solid #cfd6df;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.mypage-btn.primary {
    border-color: #1f5fae;
    background: #1f5fae;
    color: #ffffff;
}

.mypage-btn.danger {
    border-color: #e5b4b4;
    color: #c62828;
}

.mypage-btn.danger:hover {
    border-color: #c62828;
    background: #fff5f5;
}

.member-summary-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #e4e8ef;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.member-profile-circle {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: #f4f8ff;
    color: #1f5fae;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
}

.member-summary-info h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: -0.06em;
}

.member-summary-info p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 14px;
}

.member-summary-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1f5fae;
    font-size: 13px;
    font-weight: 700;
}

.member-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.member-info-card,
.member-setting-card {
    border: 1px solid #e4e8ef;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.info-label {
    color: #8b95a1;
    font-size: 13px;
    font-weight: 500;
}

.info-value {
    margin-top: 7px;
    color: #111827;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;
    word-break: break-all;
}

.member-setting-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.06em;
}

.member-setting-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.member-setting-list div {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.member-setting-list span {
    color: #667085;
    font-size: 14px;
}

.member-setting-list strong {
    color: #1f5fae;
    font-size: 14px;
}

/* edit */
.member-password-zone {
    margin-top: 8px;
    padding: 17px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e4e8ef;
}

.member-password-zone h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.055em;
}

.member-password-zone p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 14px;
}

.member-form-actions {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 9px;
    margin-top: 22px;
}

.member-btn-sub {
    width: 100%;
}

.member-btn.danger {
    border-color: #c62828;
    background: #c62828;
    color: #ffffff;
}

.member-btn.danger:hover {
    background: #a61f1f;
}

/* withdraw */
.withdraw-head {
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.withdraw-head .member-auth-kicker {
    color: #c62828;
}

.withdraw-warning {
    margin: 26px 30px 0;
    padding: 20px;
    border: 1px solid #f1c6c6;
    border-radius: 18px;
    background: #fff8f8;
}

.withdraw-warning h2 {
    margin: 0 0 12px;
    color: #c62828;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.055em;
}

.withdraw-warning ul {
    margin: 0;
    padding-left: 20px;
    color: #5f6b7a;
    font-size: 14.5px;
    line-height: 1.75;
}

.withdraw-form select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cfd6df;
    border-radius: 13px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
}

/* responsive */
@media (max-width: 860px) {
    .member-mypage-head {
        display: block;
    }

    .member-mypage-actions {
        margin-top: 16px;
    }

    .member-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-setting-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .member-mypage-head h1 {
        font-size: 29px;
    }

    .member-mypage-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .member-summary-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .member-profile-circle {
        margin: 0 auto;
    }

    .member-summary-badge {
        justify-content: center;
    }

    .member-info-grid {
        grid-template-columns: 1fr;
    }

    .member-form-actions {
        grid-template-columns: 1fr;
    }

    .withdraw-warning {
        margin-left: 22px;
        margin-right: 22px;
    }
}