/* 프로필 수정 페이지 스타일 */

.profile-page-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  color: #fff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(51,65,85,0.25);
  margin-bottom: 20px;
}

.profile-page-title {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
}

.profile-page-subtitle {
  margin: 8px 0 0;
  opacity: 0.95;
  font-size: 0.95em;
}

.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  max-width: 640px;
}

.profile-hint {
  margin-bottom: 16px;
  color: #64748b;
  font-size: 0.9em;
}

.profile-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
}

.profile-message-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.profile-message-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.profile-message-info {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.profile-message-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.profile-status {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
}

.status-linked {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-unlinked {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 24px;
  margin-bottom: 24px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-field.profile-field-record {
  margin-bottom: 24px;
}

.profile-field.profile-field-bio {
  margin-bottom: 24px;
}

.profile-field label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95em;
}

.profile-field input[type="text"],
.profile-field input[type="password"],
.profile-field input[type="number"],
.profile-field input[type="email"],
.profile-field select,
.profile-field textarea {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}

/* 선택상자 높이/가독성 개선 - 닫힌 상태 & 드롭다운 옵션 */
.profile-field select,
.profile-field .profile-select {
  height: 48px;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  line-height: 1.6;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fff;
}
.profile-field select option {
  padding: 14px 16px;
  min-height: 44px;
  line-height: 1.6;
  font-size: 16px;
}
.profile-field textarea {
  resize: vertical;
  min-height: 100px;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: #475569;
  box-shadow: 0 0 0 3px rgba(71,85,105,0.15);
}

.profile-field-hint,
.profile-field .muted {
  font-size: 0.85em;
  color: #64748b;
  margin-top: 4px;
}

.profile-error {
  color: #dc2626;
  font-size: 0.85em;
  margin-top: 4px;
}

.profile-form-errors {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.profile-btn-primary {
  padding: 12px 24px;
  background: #475569;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.profile-btn-primary:hover {
  background: #334155;
  box-shadow: 0 2px 8px rgba(51,65,85,0.3);
}

.profile-btn-secondary {
  padding: 12px 24px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.profile-btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* 회원가입 페이지 */
.signup-grid {
  max-width: 480px;
}
.signup-grid .profile-field-full {
  grid-column: 1 / -1;
}
