/* =============================================
   마이페이지 스타일
   메인컬러: #004069 / 폰트: Noto Sans KR
   ============================================= */

.fsl-mypage {
    font-family: 'Noto Sans KR', sans-serif;
    max-width: 480px;
    margin: 40px auto;
    padding: 0;
    color: #222;
}

/* ── 헤더 (아바타 + 이름) ── */
.fsl-mypage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.fsl-mypage-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fsl-mypage-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.fsl-mypage-provider {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    color: #fff;
    background: #888;
}

.fsl-provider-kakao { background: #FEE500; color: #191919; }
.fsl-provider-naver { background: #03C75A; }
.fsl-provider-google { background: #4285F4; }

/* ── 섹션 ── */
.fsl-mypage-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 28px 32px;
    margin-bottom: 16px;
}

.fsl-mypage-section h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #004069;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef1f4;
}

/* ── 정보 테이블 ── */
.fsl-mypage-table {
    width: 100%;
    border-collapse: collapse;
}

.fsl-mypage-table th,
.fsl-mypage-table td {
    padding: 12px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f2f4f6;
}

.fsl-mypage-table th {
    text-align: left;
    width: 100px;
    white-space: nowrap;
    padding-right: 20px;
    color: #8896a6;
    font-weight: 400;
}

.fsl-mypage-table td {
    color: #222;
}

.fsl-mypage-table tr:last-child th,
.fsl-mypage-table tr:last-child td {
    border-bottom: none;
}

/* ── 폼 ── */
.fsl-mypage-form .fsl-form-row {
    margin-bottom: 16px;
}

.fsl-mypage-form label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    margin-bottom: 6px;
}

.fsl-mypage-form input[type="text"],
.fsl-mypage-form input[type="email"],
.fsl-mypage-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9dfe5;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #222;
    background: #f8fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.fsl-mypage-form input:focus {
    border-color: #004069;
    box-shadow: 0 0 0 3px rgba(0,64,105,0.1);
    background: #fff;
}

.fsl-form-actions {
    margin-top: 8px;
}

.fsl-btn-save {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 8px;
    background: #004069;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fsl-btn-save:hover {
    background: #003050;
}

.fsl-btn-save:disabled {
    background: #8896a6;
    cursor: not-allowed;
}

/* ── 메시지 ── */
.fsl-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.fsl-msg-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.fsl-msg-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── 하단 버튼 ── */
.fsl-mypage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.fsl-btn-logout {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #d9dfe5;
    border-radius: 8px;
    background: #fff;
    color: #555 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.fsl-btn-logout:hover {
    background: #f8fafb;
}

.fsl-btn-delete {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: none;
    color: #dc2626;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fsl-btn-delete:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* ── 모달 ── */
.fsl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.fsl-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.fsl-modal-content h4 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.fsl-modal-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.fsl-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fsl-btn-delete-confirm {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fsl-btn-delete-confirm:hover {
    background: #b91c1c;
}

.fsl-btn-delete-confirm:disabled {
    background: #999;
    cursor: not-allowed;
}

.fsl-btn-cancel {
    padding: 11px 24px;
    border: 1px solid #d9dfe5;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fsl-btn-cancel:hover {
    background: #f8fafb;
}

/* ── 반응형 ── */
@media (max-width: 520px) {
    .fsl-mypage {
        margin: 20px 16px;
    }

    .fsl-mypage-header {
        padding: 24px 20px;
    }

    .fsl-mypage-section {
        padding: 24px 20px;
    }

    .fsl-mypage-avatar img {
        width: 60px;
        height: 60px;
    }

    .fsl-mypage-name {
        font-size: 17px;
    }
}
