/* =========================
   MYPAGE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mypage-screen {
  position: relative;
  min-height: 100vh;
  background-color: #ffffff;
  padding-bottom: 120px; /* 하단 고정 영역과 내용이 겹치지 않도록 여백 확보 */
}

/* =========================
   hidden
========================= */

.hidden {
  display: none !important;
}

/* =========================
   헤더
========================= */

.mypage-header {
  height: 58px;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #eeeeee;
}

.mypage-header h1 {
  margin: 0;
  text-align: center;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
}

.back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.back-button img {
  width: 22px;
  height: 22px;
}

.header-space {
  width: 40px;
}

/* =========================
   프로필
========================= */

.profile-section {
  padding-top: 40px;
  text-align: center;
}

.profile-image-wrap {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 50%;
  background-color: #ffffff;
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin: 0 0 7px;
  color: #111111;
  font-size: 20px;
  font-weight: 700;
}

.profile-id {
  margin: 0;
  color: #555555;
  font-size: 12px;
}

/* =========================
   정보 영역
========================= */

.profile-info-section {
  margin: 34px 22px 0;
  border-top: 1px solid #dddddd;
}

.profile-info-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dddddd;
}

.profile-info-label {
  color: #333333;
  font-size: 11px;
  font-weight: 600;
}

.profile-info-value {
  overflow: hidden;
  color: #555555;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   하단 고정 액션 영역 (수정완료/수정하기 + 탈퇴/로그아웃)
========================= */

.bottom-btn-area {
  position: fixed;
  left: 50%;
  bottom: 20px;
  width: calc(100% - 44px);
  max-width: 346px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.profile-edit-button,
.profile-save-button {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 0;
  background-color: #52aead;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.profile-edit-button:active,
.profile-save-button:active {
  background-color: #459b9a;
}

/* 로그아웃 | 회원탈퇴 스타일 */
.account-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.action-text-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #8e8e93; /* 동일한 차분한 회색 */
  cursor: pointer;
  padding: 0;
  text-decoration: none; /* 밑줄 제거 */
}

.action-text-btn:hover {
  color: #555555;
}

.account-actions .divider {
  font-size: 11px;
  color: #c7c7cc; /* 구분선 회색 */
}

/* =========================
   수정 화면
========================= */

.profile-edit-view {
  min-height: 100vh;
  padding-bottom: 120px;
}

/* =========================
   수정 프로필 사진
========================= */

.edit-profile-image-section {
  padding-top: 30px;
  text-align: center;
}

.edit-profile-image-button {
  position: relative;
  width: 108px;
  height: 108px;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #dddddd;
  cursor: pointer;
}

.edit-profile-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.camera-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
}

/* =========================
   수정 입력폼
========================= */

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 32px 22px 0;
}

.edit-field {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
}

.edit-field label {
  color: #333333;
  font-size: 10px;
  font-weight: 600;
}

.edit-field input {
  width: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  color: #222222;
  font-size: 11px;
}

.edit-field input::placeholder {
  color: #bbbbbb;
}

/* =========================
   모바일 대응
========================= */

@media (max-width: 390px) {
  .bottom-btn-area {
    width: calc(100% - 32px);
  }
}