/* =========================================================
   Tournament Site — Edit Profile Page Stylesheet
   Loaded AFTER styles.css, home.css, and profile.css so it
   inherits shared tokens, the .field-group input styles, and
   the .profile-avatar-lg component. This file only adds rules
   specific to the Edit Profile form.
   ========================================================= */

.edit-profile-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  width: fit-content;
}

.edit-profile-back:hover {
  color: var(--text-primary);
}

.edit-profile-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.edit-profile-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.edit-profile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-clip);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Avatar ---------- */

.edit-profile-avatar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.edit-profile-avatar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.edit-profile-upload {
  width: auto;
  min-height: auto;
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
}

.edit-profile-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 2px;
}

.edit-profile-remove:hover {
  color: var(--crimson);
}

/* ---------- Form sections ---------- */

.edit-profile-section {
  display: flex;
  flex-direction: column;
}

.edit-profile-section h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.edit-profile-section .field-group:last-child {
  margin-bottom: 0;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* ---------- Actions ---------- */

.edit-profile-actions {
  display: flex;
  gap: 14px;
}

.edit-profile-actions .btn-primary {
  flex: 1;
}

.edit-profile-cancel {
  flex: none;
  width: auto;
  min-height: auto;
  padding: 14px 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .edit-profile-main {
    padding: 24px 16px calc(var(--nav-height-mobile) + 32px);
  }

  .edit-profile-card {
    padding: 22px 20px;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .edit-profile-title {
    font-size: 20px;
  }

  .edit-profile-avatar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .edit-profile-actions {
    flex-direction: column-reverse;
  }

  .edit-profile-actions .btn-primary {
    flex: none;
    width: 100%;
  }

  .edit-profile-cancel {
    width: 100%;
    justify-content: center;
  }
}
