/* ===== SHARED STYLES ===== */
/**
 * @file: shared/user-info.css
 * @description: 회원 정보 모달 스타일
 * @components: 회원 정보 모달
 * @usage: 회원 정보 모달 스타일링
 */
.user-info-form {
  position: relative;
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  margin: 40px auto;
}

.user-info-form .input-group {
  position: relative;
  margin-bottom: 20px;
}

.user-info-form input[type="text"],
.user-info-form input[type="email"],
.user-info-form input[type="tel"],
.user-info-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  margin-bottom: 16px;
}

/* 입력 필드 포커스 효과 */
.user-info-form input[type="text"]:focus,
.user-info-form input[type="email"]:focus,
.user-info-form input[type="tel"]:focus,
.user-info-form select:focus {
  border-color: #1a73e8;
  background-color: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

/* 모든 입력 필드 너비 통일 */
#userNickname, 
#userEmail, 
#centerName, 
#workAddress, 
#userPhone {
  width: 92.5%;
}

/* 주소 검색 버튼 여백 조정 */
.user-info-form #searchAddress {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px 0;
  background-color: #f8f9fa;
  color: #1a73e8;
  border: 2px solid #1a73e8;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* 저장/취소 버튼 여백 조정 */
.user-info-form .button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* 제목 여백 조정 */
.user-info-form h2 {
  font-size: 1.5em;
  color: #1a73e8;
  margin: 0 0 24px 0;
  text-align: center;
}

.user-info-form #searchAddress:hover {
  background-color: #1a73e8;
  color: white;
}

/* 저장/취소 버튼 */
.user-info-form #saveUserInfo,
.user-info-form #cancelUserInfo {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* 저장 버튼 */
.user-info-form #saveUserInfo {
  background-color: #1a73e8;
  color: white;
  border: none;
}

.user-info-form #saveUserInfo:hover {
  background-color: #1557b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

/* 취소 버튼 */
.user-info-form #cancelUserInfo {
  background-color: #f1f3f4;
  color: #5f6368;
  border: 2px solid #e0e0e0;
}

.user-info-form #cancelUserInfo:hover {
  background-color: #e8eaed;
}

/* 필수 입력 표시 */
.user-info-form .required::after {
  content: '*';
  color: #dc3545;
  margin-left: 4px;
}

/* ===== SHARED STYLES ===== */
/**
 * @file: shared/user-info.css
 * @description: 사용자 정보 입력 모달 안의 지역 선택기 스타일
 * @components: 사용자 정보 입력 모달 안의 지역 선택기
 * @usage: 사용자 정보 입력 모달 안의 지역 선택기 스타일링
 */
.location-selectors {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
  width: 100%;
}

.location-selectors select {
  flex: 1 1 33.333%;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  min-width: 0;
  width: 0;
  font-size: 0.9em;
}

/* ===== SHARED STYLES ===== */
/**
 * @file: shared/user-info.css
 * @description: 사용자 정보 스타일
 * @components: 사용자 정보 모달
 * @usage: 사용자 정보 모달 스타일링
 */
.user-profile {
  max-width: 600px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.profile-image-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1a73e8;
}

.profile-info h2 {
  margin: 0 0 8px 0;
  color: #333;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #666;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 12px;
  border: 1px solid #eee;
}

.profile-table th {
  width: 100px;
  background-color: #f8f9fa;
  text-align: center;
  font-weight: 600;
}

/* 작성자 정보 클릭 가능 스타일 */
.author-info.clickable {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.author-info.clickable:hover {
  background-color: #f0f7ff;
}

/* ===== SHARED STYLES ===== */
/**
 * @file: shared/user-info.css
 * @description: 사용자 정보 모달 스타일
 * @components: 사용자 정보 모달
 * @usage: 사용자 정보 모달 스타일링
 */
#userInfoFormOverlay.modal {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}
