/* ============================================
   EDIT PROFILE VIEW - EXACTLY MATCHING iOS EditProfileView.swift
   ============================================ */

.edit-profile-sheet {
  z-index: 1060;
}

.edit-profile-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.edit-profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--brokerly-border-light);
  background: var(--brokerly-secondary-background);
}

.nav-cancel,
.nav-save {
  font-size: 16px;
  font-weight: 400;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px 12px;
}

.nav-cancel {
  color: var(--brokerly-text-secondary);
}

.nav-save {
  color: var(--brokerly-primary);
  font-weight: 600;
}

.nav-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--brokerly-text-primary);
  margin: 0;
}

/* Scroll Container */
.edit-profile-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--brokerly-background);
}

/* Profile Picture Section */
.profile-picture-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--modern-card-background);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brokerly-primary), #3dd598);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
}

.avatar-initials {
  font-size: 36px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.change-photo-btn {
  font-size: 15px;
  font-weight: 500;
  color: var(--brokerly-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.change-photo-btn:hover {
  background: rgba(52, 199, 89, 0.1);
}

/* Form Sections */
.form-section {
  margin-bottom: 24px;
  background: var(--modern-card-background);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brokerly-text-primary);
  margin: 0 0 16px 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--brokerly-text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: var(--brokerly-text-primary);
  background: var(--brokerly-input-background);
  border: 1px solid var(--brokerly-border-medium);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  background: var(--brokerly-input-background);
  border-color: var(--brokerly-primary);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.char-count {
  font-size: 12px;
  color: var(--brokerly-text-secondary);
  text-align: right;
  margin-top: 4px;
}

/* Toast Notification */
.profile-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.profile-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-toast.error {
  background: rgba(255, 59, 48, 0.9);
}

/* Responsive */
@media (max-width: 480px) {
  .edit-profile-scroll {
    padding: 16px;
  }
  
  .form-section {
    padding: 16px;
  }
  
  .profile-avatar-large {
    width: 80px;
    height: 80px;
  }
  
  .avatar-initials {
    font-size: 28px;
  }
}

